File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ import { StripeSync } from "@supabase/stripe-sync-engine";
22
33import { env } from "../env" ;
44
5+ export const STRIPE_API_VERSION = "2023-10-16" ;
6+
57export 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} ) ;
Original file line number Diff line number Diff line change 11import { StripeSync } from "@supabase/stripe-sync-engine" ;
22import { parseArgs } from "util" ;
33
4+ import { STRIPE_API_VERSION } from "../integration/stripe-sync" ;
5+
46const { DATABASE_URL , STRIPE_SECRET_KEY , STRIPE_WEBHOOK_SECRET } = Bun . env ;
57
68if ( ! 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
You can’t perform that action at this time.
0 commit comments