log score submit stats update requests

This commit is contained in:
Holly Stubbs 2022-04-24 02:04:14 +01:00
parent 3b81210c46
commit e2f74281af
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -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!");