This commit is contained in:
Siwoo Jeon 2023-09-28 13:19:43 +09:00
parent 9ceee26012
commit 9cd44c874f
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -17,4 +17,12 @@ export interface ResponseData extends BaseData {
export { BaseData as NSFWData } export { BaseData as NSFWData }
export default createPool(config.mysql) const database = createPool(config.mysql)
setInterval(async () => {
const db = await database.getConnection()
await db.ping()
db.release()
}, 60000)
export default database