refactor/await UpdatePlayer then return

This commit is contained in:
SowinskiBraeden committed 2023-10-31 16:17:06 -07:00
1 parent ea60c4a459
commit 160979e6e7
3 files changed
+11 -6

No files matched your search

+6 -3
View File
@@ -59,7 +59,8 @@ module.exports = {
lastConnectionDate: null,
});
return await UpdatePlayer(client, playerStat);
await UpdatePlayer(client, playerStat);
return;
}
if (line.includes(' disconnected')) {
@@ -112,7 +113,8 @@ module.exports = {
});
}
return await UpdatePlayer(client, playerStat);
await UpdatePlayer(client, playerStat);
return;
}
if (line.includes('pos=<') && !line.includes('hit by')) {
@@ -171,7 +173,8 @@ module.exports = {
playerStat.lastDamageDate = await client.getDateEST(info.time);
playerStat.lastHitBy = info.attacker;
return await UpdatePlayer(client, playerStat);
await UpdatePlayer(client, playerStat);
return;
}
return;