Skip to content

Commit fbddf4c

Browse files
authored
fix(sync-engine): apply schema default early (#227) (#232)
Co-authored-by: Francesco <Carrella>
1 parent 511a4a2 commit fbddf4c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/sync-engine/src/stripeSync.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export class StripeSync {
5151
postgresClient: PostgresClient
5252

5353
constructor(private config: StripeSyncConfig) {
54+
this.config.schema = config.schema || DEFAULT_SCHEMA
55+
5456
this.stripe = new Stripe(config.stripeSecretKey, {
5557
// https://github.com/stripe/stripe-node#configuration
5658
// @ts-ignore
@@ -86,7 +88,7 @@ export class StripeSync {
8688
}
8789

8890
this.postgresClient = new PostgresClient({
89-
schema: config.schema || DEFAULT_SCHEMA,
91+
schema: this.config.schema,
9092
poolConfig,
9193
})
9294
}

0 commit comments

Comments
 (0)