From 04c7687af5ca706fc0111220fc369439802c15b5 Mon Sep 17 00:00:00 2001 From: hzmi Date: Wed, 1 May 2024 11:28:38 +0000 Subject: [PATCH] fix: fix drizzle client --- services/kanao-cache/src/Structures/KanaoCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/kanao-cache/src/Structures/KanaoCache.ts b/services/kanao-cache/src/Structures/KanaoCache.ts index 2a9390cb..8d3d45e7 100644 --- a/services/kanao-cache/src/Structures/KanaoCache.ts +++ b/services/kanao-cache/src/Structures/KanaoCache.ts @@ -35,7 +35,7 @@ export class KanaoCache extends EventEmitter { public drizzle = withReplicas( drizzle(this.postgresInstance.master, { schema }), - [this.postgresInstance.slaves.shift()!, this.postgresInstance.slaves] + [drizzle(this.postgresInstance.slaves.shift()!, { schema }), ...this.postgresInstance.slaves.map(p => drizzle(p, { schema }))] ); public stores = new StoreRegistry();