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 bulk-archive-partners.ts

Kiran K63d72e2aa74d
diff --git a/apps/web/lib/actions/partners/bulk-archive-partners.ts b/apps/web/lib/actions/partners/bulk-archive-partners.ts
index e6b5d96b2c..bce6e1ecd6 100644
--- a/apps/web/lib/actions/partners/bulk-archive-partners.ts
+++ b/apps/web/lib/actions/partners/bulk-archive-partners.ts
@@ -54,24 +54,21 @@ export const bulkArchivePartnersAction = authActionClient
});
waitUntil(
- (async () => {
- // Record audit log for each partner
- await recordAuditLog(
- programEnrollments.map(({ partner }) => ({
- workspaceId: workspace.id,
- programId,
- action: "partner.archived",
- description: `Partner ${partner.id} archived`,
- actor: user,
- targets: [
- {
- type: "partner",
- id: partner.id,
- metadata: partner,
- },
- ],
- })),
- );
- })(),
+ recordAuditLog(
+ programEnrollments.map(({ partner }) => ({
+ workspaceId: workspace.id,
+ programId,
+ action: "partner.archived",
+ description: `Partner ${partner.id} archived`,
+ actor: user,
+ targets: [
+ {
+ type: "partner",
+ id: partner.id,
+ metadata: partner,
+ },
+ ],
+ })),
+ ),
);
});