diff --git a/backend/models/modelToucan.js b/backend/models/modelToucan.js index 6cba87a8024c4a38adb2febcdea41b3cd20d233d..1e620cf42e63c3303b890968ddf99150084524d2 100644 --- a/backend/models/modelToucan.js +++ b/backend/models/modelToucan.js @@ -15,7 +15,7 @@ var toucanSchema = new Schema ({ toucanSchema.index({date:-1},{unique: true}); var toucans = mongoose.model("Toucan",toucanSchema); -try{ +/* try{ await toucans.updateMany( {},{$set: { toucan_id : 'example'} }, { multi: true }, function (err, docs) { if (err){ console.log(err) @@ -25,6 +25,6 @@ await toucans.updateMany( {},{$set: { toucan_id : 'example'} }, { multi: true }, } }); } -catch(e) { console.error(e) }; +catch(e) { console.error(e) }; */ module.exports = toucans; \ No newline at end of file