Skip to content

Commit 9322980

Browse files
committed
set stripe api version
1 parent aa38577 commit 9322980

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

apps/api/src/integration/stripe-sync.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ import { StripeSync } from "@supabase/stripe-sync-engine";
22

33
import { env } from "../env";
44

5+
export const STRIPE_API_VERSION = "2023-10-16";
6+
57
export const stripeSync = new StripeSync({
68
schema: "stripe",
79
poolConfig: { connectionString: env.DATABASE_URL },
810
stripeSecretKey: env.STRIPE_SECRET_KEY,
911
stripeWebhookSecret: env.STRIPE_WEBHOOK_SECRET,
12+
stripeApiVersion: STRIPE_API_VERSION,
1013
backfillRelatedEntities: true,
1114
});

apps/api/src/scripts/stripe-backfill.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { StripeSync } from "@supabase/stripe-sync-engine";
22
import { parseArgs } from "util";
33

4+
import { STRIPE_API_VERSION } from "../integration/stripe-sync";
5+
46
const { DATABASE_URL, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET } = Bun.env;
57

68
if (!DATABASE_URL || !STRIPE_SECRET_KEY || !STRIPE_WEBHOOK_SECRET) {
@@ -78,6 +80,7 @@ const sync = new StripeSync({
7880
stripeSecretKey: STRIPE_SECRET_KEY,
7981
stripeWebhookSecret: STRIPE_WEBHOOK_SECRET,
8082
autoExpandLists: true,
83+
stripeApiVersion: STRIPE_API_VERSION,
8184
backfillRelatedEntities: true,
8285
});
8386

0 commit comments

Comments
 (0)