From e2f74281afde5a4d458ee7c3de6cc831cbf1a051 Mon Sep 17 00:00:00 2001 From: Holly Date: Sun, 24 Apr 2022 02:04:14 +0100 Subject: [PATCH] log score submit stats update requests --- server/serverHandler.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/serverHandler.js b/server/serverHandler.js index c4b96a4..f8fe042 100644 --- a/server/serverHandler.js +++ b/server/serverHandler.js @@ -49,8 +49,11 @@ if (config.redisEnabled) { // Score submit update channel subscribeToChannel("binato:update_user_stats", (message) => { + const user = getUserById(parseInt(message)); // 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!");