fix/remove old stats from return

This commit is contained in:
SowinskiBraeden committed 2023-11-04 19:18:39 -07:00
1 parent 4980df99fc
commit d88af57447
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ module.exports = {
KillInAlarm(client, guild.serverID, info); // check if kill happened in a no kill zone
if (!client.exists(info.victim) || !client.exists(info.victimID) || !client.exists(info.killer) || !client.exists(info.killerID)) return stats;
if (!client.exists(info.victim) || !client.exists(info.victimID) || !client.exists(info.killer) || !client.exists(info.killerID)) return;
let victimStat = await client.dbo.collection("players").findOne({"playerID": info.victimID});
let killerStat = await client.dbo.collection("players").findOne({"playerID": info.killerID});