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
+2
-2
@@ -93,7 +93,7 @@ module.exports = {
|
||||
$set: {
|
||||
"server.events": events
|
||||
}
|
||||
}, function(err, res) {
|
||||
}, (err, res) => {
|
||||
if (err) return client.sendInternalError(interaction, err);
|
||||
});
|
||||
|
||||
@@ -138,7 +138,7 @@ module.exports = {
|
||||
$pull: {
|
||||
'server.events': event,
|
||||
}
|
||||
}, function (err, res) {
|
||||
}, (err, res) => {
|
||||
if (err) return client.sendInternalError(interaction, err);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user