diff --git a/idx_mongo.js b/idx_mongo.js index c2a2b0b..90a3dee 100644 --- a/idx_mongo.js +++ b/idx_mongo.js @@ -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); }