[Eliminate Blocking] Database related (#5926)

This commit is contained in:
Louis Lam
2025-06-19 14:30:24 +08:00
committed by GitHub
parent 4962817795
commit e0335ecfbd
2 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ module.exports.databaseSocketHandler = (socket) => {
checkLogin(socket);
callback({
ok: true,
size: Database.getSize(),
size: await Database.getSize(),
});
} catch (error) {
callback({