moved log message

This commit is contained in:
Baipyrus 2023-02-06 09:29:11 +01:00
parent f408548ab0
commit 127903e423

View File

@ -235,13 +235,13 @@ app.post('/activity', (req, res) => {
// Retrieve user data
const { name, id } = req.body;
// Log activity
if (consoleLogging)
console.log(`User with ID '${name}#${id}' is online.`);
// Save activity
for (const u of users)
if (u.name === name && u.id === id) {
// Log activity
if (consoleLogging)
console.log(`User with ID '${name}#${id}' is online.`);
u.seen = new Date();
break;
}