use callback in place of catch

This commit is contained in:
Matteo Pagliazzi
2015-11-08 19:01:48 +01:00
parent 46505c8a0b
commit 87f50ff2b9
+1 -2
View File
@@ -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 ?
});