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 import-affiliate-coupons.ts

Kiran K6f1b31cf4685
diff --git a/apps/web/lib/rewardful/import-affiliate-coupons.ts b/apps/web/lib/rewardful/import-affiliate-coupons.ts
index 6b3b246fe0..a0f831526d 100644
--- a/apps/web/lib/rewardful/import-affiliate-coupons.ts
+++ b/apps/web/lib/rewardful/import-affiliate-coupons.ts
@@ -12,6 +12,13 @@ export async function importAffiliateCoupons(payload: RewardfulImportPayload) {
where: {
id: programId,
},
+ select: {
+ id: true,
+ workspaceId: true,
+ domain: true,
+ url: true,
+ defaultFolderId: true,
+ },
});
const { token } = await rewardfulImporter.getCredentials(program.workspaceId);