mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 14:46:41 +08:00
Made sure that more of the async usages are awaited (#4574)
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = (socket) => {
|
||||
socket.on("shrinkDatabase", async (callback) => {
|
||||
try {
|
||||
checkLogin(socket);
|
||||
Database.shrink();
|
||||
await Database.shrink();
|
||||
callback({
|
||||
ok: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user