Skip to content

Commit 018cd5b

Browse files
authored
fix: use primary pg config for notifier (#1053)
1 parent c7b204c commit 018cd5b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/datastore/postgres-store.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2628,7 +2628,9 @@ export class PgDataStore
26282628
}
26292629
let notifier: PgNotifier | undefined = undefined;
26302630
if (withNotifier) {
2631-
notifier = new PgNotifier(getPgClientConfig({ usageName: `${usageName}:notifier` }));
2631+
notifier = new PgNotifier(
2632+
getPgClientConfig({ usageName: `${usageName}:notifier`, primary: true })
2633+
);
26322634
}
26332635
const poolConfig: PoolConfig = getPgClientConfig({
26342636
usageName: `${usageName};datastore-crud`,

0 commit comments

Comments
 (0)