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 disable-stripe-promotion-code.ts

Kiran Kf51c562ceb05
diff --git a/apps/web/lib/stripe/disable-stripe-promotion-code.ts b/apps/web/lib/stripe/disable-stripe-promotion-code.ts
index 861c0b5116..4213ebbfbc 100644
--- a/apps/web/lib/stripe/disable-stripe-promotion-code.ts
+++ b/apps/web/lib/stripe/disable-stripe-promotion-code.ts
@@ -35,7 +35,7 @@ export async function disableStripePromotionCode({
if (promotionCodes.data.length === 0) {
console.error(
- `Stripe promotion code ${promotionCode} not found in the connected account ${workspace.stripeConnectId}.`,
+ `Stripe promotion code ${promotionCode} not found (stripeConnectId=${workspace.stripeConnectId}).`,
);
return;
}
@@ -54,13 +54,13 @@ export async function disableStripePromotionCode({
);
console.info(
- `Stripe promotion code ${promotionCode} in the connected account ${workspace.stripeConnectId} has been disabled.`,
+ `Disabled Stripe promotion code ${promotionCode.code} (id=${promotionCode.id}, stripeConnectId=${workspace.stripeConnectId}).`,
);
return promotionCode;
} catch (error) {
console.error(
- `Failed to disable Stripe promotion code ${promotionCode} in the connected account ${workspace.stripeConnectId}.`,
+ `Failed to disable Stripe promotion code ${promotionCode} (stripeConnectId=${workspace.stripeConnectId}).`,
error,
);