mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-04-28 21:05:36 +08:00
fix: use primary pg config for notifier (#1053)
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user