mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
still throw error
This commit is contained in:
1 parent
1876d38089
commit
1bab2d3e4e
1 file changed
+1
@@ -9,4 +9,5 @@ Setting.update({id: '1'}, {$setOnInsert: defaults}, {upsert: true})
|
||||
}).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