change/simplify err function handles
This commit is contained in:
1 parent
cbdbd18051
commit
317c48de36
19 files changed
+61
-61
No files matched your search
@@ -12,7 +12,7 @@ const ExpireEvent = async(client, guild, e) => {
|
||||
$pull: {
|
||||
"server.events": e
|
||||
}
|
||||
}, function(err, res) {
|
||||
}, (err, res) => {
|
||||
if (err) return client.sendError(client.GetChannel(guild.adminLogsChannel), err);
|
||||
});
|
||||
}
|
||||
@@ -128,7 +128,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
if (update) {
|
||||
client.dbo.collection("guilds").updateOne({ "server.serverID": guildId }, {$set: { "server.uavs": uavs }}, function (err, res) {
|
||||
client.dbo.collection("guilds").updateOne({ "server.serverID": guildId }, {$set: { "server.uavs": uavs }}, (err, res) => {
|
||||
if (err) return client.sendError(client.GetChannel(guild.adminLogsChannel), err);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user