.
This commit is contained in:
parent
9ceee26012
commit
9cd44c874f
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue