mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
let exceptional circumstances be exceptional
This commit is contained in:
@@ -8,6 +8,5 @@ Setting.update({id: '1'}, {$setOnInsert: defaults}, {upsert: true})
|
||||
mongoose.disconnect();
|
||||
}).catch((err) => {
|
||||
console.error(`failed to create the settings object ${JSON.stringify(err)}`);
|
||||
mongoose.disconnect();
|
||||
throw new Error(err); // just to be safe
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user