final fix

This commit is contained in:
SowinskiBraeden committed 2023-03-28 19:19:04 -07:00
1 parent ef1083402d
commit 81b95a1569
1 file changed
+2 -2
+2 -2
View File
@@ -29,12 +29,12 @@ module.exports = {
if (!client.exists(GuildDB.playerstats)) {
GuildDB.playerstats = [{}];
client.dbo.collection("guilds").updateOne({ "server.serverID": guild.serverID }, {
client.dbo.collection("guilds").updateOne({ "server.serverID": GuildDB.serverID }, {
$set: {
"server.playerstats": []
}
}, function (err, res) {
if (err && this.exists(channel)) return this.sendInternalError(channel, err);
if (err) return this.sendInternalError(interaction, err);
});
}