From 44b25cf0a82e77eccc0c88eeb89e9145a6001a7f Mon Sep 17 00:00:00 2001 From: Migan178 Date: Sun, 29 Oct 2023 17:58:31 +0900 Subject: [PATCH] . --- src/modules/database.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/database.ts b/src/modules/database.ts index 5645759..dd4c861 100644 --- a/src/modules/database.ts +++ b/src/modules/database.ts @@ -17,6 +17,10 @@ export interface ResponseData extends BaseData { export { BaseData as NSFWData } -const database = createPool(config.mysql) +const database = createPool({ + ...config.mysql, + keepAliveInitialDelay: 10000, + enableKeepAlive: true, +}) export default database