fix(Postgres Chat Memory Node): Do not terminate the connection pool (#12674)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-17 14:58:19 +01:00
committed by GitHub
parent e6a15dfba3
commit e7f00bcb7f
2 changed files with 1 additions and 6 deletions

View File

@@ -186,7 +186,7 @@ export async function configurePostgres(
nodeVersion: options.nodeVersion as unknown as string,
fallBackHandler,
cleanUpHandler: async ({ db }) => {
await db.$pool.end();
if (!db.$pool.ended) await db.$pool.end();
},
});
}