0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-24 11:37:39 +01:00

Fix: Use .destroy() instead of .end()

This commit is contained in:
Nelson Chan 2023-02-07 05:01:53 +08:00 committed by GitHub
parent 0197778af1
commit e1f956879d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ exports.mysqlQuery = function (connectionString, query) {
reject(err);
})
.finally(() => {
connection.end();
connection.destroy();
});
});
};