feat: send db ping
This commit is contained in:
parent
3da05a22f8
commit
0e5f94ff63
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ export default class ChatBot {
|
|||
}
|
||||
})
|
||||
db.release()
|
||||
|
||||
setInterval(async () => {
|
||||
const db = await database.getConnection()
|
||||
await db.ping()
|
||||
db.release()
|
||||
}, 600000)
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue