use callback in place of catch
This commit is contained in:
@@ -688,7 +688,6 @@ mongoose.model('User')
|
||||
.then((foundMods) => {
|
||||
// Using push to maintain the reference to mods
|
||||
mods.push(...foundMods);
|
||||
})
|
||||
.catch((err) => {
|
||||
}, (err) => { // TODO replace with .catch which for some reason was throwing an error
|
||||
throw err; // TODO ?
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user