Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update approve-partner.ts

Steven Teyc4c3517f7db3
diff --git a/apps/web/lib/actions/partners/approve-partner.ts b/apps/web/lib/actions/partners/approve-partner.ts
index 9f02cb00a4..aa66b26f32 100644
--- a/apps/web/lib/actions/partners/approve-partner.ts
+++ b/apps/web/lib/actions/partners/approve-partner.ts
@@ -61,24 +61,16 @@ export const approvePartnerAction = authActionClient
programId,
},
include: {
- tags: true,
+ tags: {
+ select: {
+ tag: true,
+ },
+ },
},
}),
]);
- waitUntil(
- recordLink({
- domain: updatedLink.domain,
- key: updatedLink.key,
- link_id: updatedLink.id,
- created_at: updatedLink.createdAt,
- url: updatedLink.url,
- tag_ids: updatedLink.tags.map((t) => t.tagId),
- program_id: program.id,
- workspace_id: workspace.id,
- deleted: false,
- }),
- );
+ waitUntil(recordLink(updatedLink));
// TODO: [partners] Notify partner of approval?