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.

remove COMMISSION_ALREADY_EXISTS log

Steven Tey8f9ffdac89de
diff --git a/apps/web/lib/rewardful/import-commissions.ts b/apps/web/lib/rewardful/import-commissions.ts
index 559be1d06b..20ea4af784 100644
--- a/apps/web/lib/rewardful/import-commissions.ts
+++ b/apps/web/lib/rewardful/import-commissions.ts
@@ -216,13 +216,9 @@ async function createCommission({
});
if (trackedCommission) {
- await logImportError({
- ...commonImportLogInputs,
- entity: "commission",
- entity_id: commission.id,
- code: "COMMISSION_ALREADY_EXISTS",
- message: `Commission ${commission.id} with sale amount ${amount} was already recorded on Dub.`,
- });
+ console.log(
+ `Commission ${commission.id} with sale amount ${amount} was already recorded on Dub. Skipping...`,
+ );
return;
}
diff --git a/apps/web/lib/zod/schemas/import-error-log.ts b/apps/web/lib/zod/schemas/import-error-log.ts
index 7cf81878dd..e22ddfa7fb 100644
--- a/apps/web/lib/zod/schemas/import-error-log.ts
+++ b/apps/web/lib/zod/schemas/import-error-log.ts
@@ -14,7 +14,6 @@ export const importErrorLogSchema = z.object({
"LEAD_NOT_FOUND",
"CLICK_NOT_FOUND",
"STRIPE_CUSTOMER_ID_NOT_FOUND",
- "COMMISSION_ALREADY_EXISTS",
]),
message: z.string(),
});