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
@@ -152,7 +152,7 @@ module.exports = {
|
||||
$set: {
|
||||
[`user.guilds.${guildId}.balance`]: newBalance,
|
||||
}
|
||||
}, function(err, res) {
|
||||
}, (err, res) => {
|
||||
if (err) return client.sendError(client.GetChannel(guild.killfeedChannel), `Killfeed Error: Updating killer bank balance\n${err}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user