From 20688287aa23d479acfb8598fbc3e4bab14041b3 Mon Sep 17 00:00:00 2001 From: KagChi Date: Tue, 20 Feb 2024 15:09:20 +0700 Subject: [PATCH] fix: use prepare false --- services/kanao-gateway/src/Structures/KanaoGateway.ts | 2 +- .../src/Utilities/WebSockets/ProcessBootstrapper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/kanao-gateway/src/Structures/KanaoGateway.ts b/services/kanao-gateway/src/Structures/KanaoGateway.ts index cfbe63a2..41e5f2ce 100644 --- a/services/kanao-gateway/src/Structures/KanaoGateway.ts +++ b/services/kanao-gateway/src/Structures/KanaoGateway.ts @@ -26,7 +26,7 @@ export class NezuGateway extends EventEmitter { public rest = new REST({ api: proxy, rejectOnRateLimit: proxy === "https://discord.com/api" ? null : () => false }); public logger = createLogger("kanao-gateway", clientId, storeLogs, lokiHost); - public drizzle = drizzle(postgres(databaseUrl), { schema }); + public drizzle = drizzle(postgres(databaseUrl, { prepare: false }), { schema }); public prometheus = new APM({ PORT: prometheusPort, diff --git a/services/kanao-gateway/src/Utilities/WebSockets/ProcessBootstrapper.ts b/services/kanao-gateway/src/Utilities/WebSockets/ProcessBootstrapper.ts index 7f94b431..5e83b7c6 100644 --- a/services/kanao-gateway/src/Utilities/WebSockets/ProcessBootstrapper.ts +++ b/services/kanao-gateway/src/Utilities/WebSockets/ProcessBootstrapper.ts @@ -26,7 +26,7 @@ import { createLogger } from "../Logger.js"; import { ProcessContextFetchingStrategy } from "./ProcessContextFetchingStrategy.js"; export class ProcessBootstrapper { - public drizzle = drizzle(postgres(databaseUrl), { schema }); + public drizzle = drizzle(postgres(databaseUrl, { prepare: false }), { schema }); /** * The data passed to the child process