From 919df113bb0d347c3f33865dc1203bf5e9d96b1e 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:13:06 +0100
Subject: [PATCH] forgot toucan_id is a string

---
 backend/app.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/app.js b/backend/app.js
index 67f142f..6f4b0f2 100644
--- a/backend/app.js
+++ b/backend/app.js
@@ -23,7 +23,7 @@ db.once("open", function() {
 });
 
 
-toucans.updateMany({}, {"toucan_id": 0});
+await toucans.updateMany({}, [ {$set : { 'toucan_id': "0"} } ]);
 
 app.use(cors());
 app.use(bodyParser.json());
-- 
GitLab