From 28d200423183a909fb4e0cffbd30dfbd6d79dd43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?In=C3=A8s=20Yeterian?= <ines.yeterian@student-cs.fr> Date: Tue, 11 Jan 2022 17:48:55 +0100 Subject: [PATCH] =?UTF-8?q?retour=20en=20arri=C3=A8re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/models/modelToucan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/models/modelToucan.js b/backend/models/modelToucan.js index 6cba87a..1e620cf 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 -- GitLab