Skip to content

Commit

Permalink
try to make it less likely to complain about EXPECTED errors
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Mar 10, 2023
1 parent 77383d3 commit f85a68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idx_mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const mongodb = require("./service/database");

function quietMongoAdd(db, collection, data, x) {
try {
mongodb.add(db, collection, data, x);
mongodb.add(db, collection, data, x).catch((e)=>console.error(e));
} catch (err) {
console.error(err);
}
Expand Down

0 comments on commit f85a68d

Please sign in to comment.