log score submit stats update requests
This commit is contained in:
parent
3b81210c46
commit
e2f74281af
1 changed files with 4 additions and 1 deletions
|
@ -49,8 +49,11 @@ if (config.redisEnabled) {
|
||||||
|
|
||||||
// Score submit update channel
|
// Score submit update channel
|
||||||
subscribeToChannel("binato:update_user_stats", (message) => {
|
subscribeToChannel("binato:update_user_stats", (message) => {
|
||||||
|
const user = getUserById(parseInt(message));
|
||||||
// Update user info
|
// Update user info
|
||||||
getUserById(parseInt(message)).updateUserInfo(true);
|
user.updateUserInfo(true);
|
||||||
|
|
||||||
|
consoleHelper.printBancho(`[Redis] Score submission stats update request received for ${user.username}`);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
} else consoleHelper.printWarn("Redis is disabled!");
|
} else consoleHelper.printWarn("Redis is disabled!");
|
||||||
|
|
Loading…
Reference in a new issue