[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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({