fix: use primary pg config for notifier (#1053)

This commit is contained in:
Rafael Cárdenas
2022-02-09 11:21:26 -06:00
committed by GitHub
parent c7b204cc6c
commit 018cd5b834

View File

@@ -2628,7 +2628,9 @@ export class PgDataStore
}
let notifier: PgNotifier | undefined = undefined;
if (withNotifier) {
notifier = new PgNotifier(getPgClientConfig({ usageName: `${usageName}:notifier` }));
notifier = new PgNotifier(
getPgClientConfig({ usageName: `${usageName}:notifier`, primary: true })
);
}
const poolConfig: PoolConfig = getPgClientConfig({
usageName: `${usageName};datastore-crud`,