From d8f0225e965491e388ba0751b235357b9ae46864 Mon Sep 17 00:00:00 2001
From: Baptiste CERDAN <baptiste.owenia@gmail.com>
Date: Fri, 17 Dec 2021 14:52:51 +0100
Subject: [PATCH] update

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

diff --git a/backend/routes/auth.js b/backend/routes/auth.js
index 26b34c2..a4a5a03 100644
--- a/backend/routes/auth.js
+++ b/backend/routes/auth.js
@@ -90,7 +90,7 @@ router.post('/pay_adhesion', async (req, res) => {
     if (dbUser){
         dbUser.date_subscription = "ok " + (new Date()).toISOString().split('T')[0];
         try {
-            await dbUser.save();
+            await dbUser.update();
         } catch(e) {
             errors = e;
             return res.status(400).json(e);
-- 
GitLab