From 1d3f30842e22ce55e84b2527ead4580016ab41e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Tue, 10 Nov 2020 16:26:44 +0100 Subject: [PATCH] =?UTF-8?q?Debug=20enregistrement=20nombre=20de=20jours=20?= =?UTF-8?q?de=20l'abonnement=20lors=20de=20la=20validation=20d'une=20cr?= =?UTF-8?q?=C3=A9ation=20de=20compte.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/user.js b/controllers/user.js index 6cb2499..eb20c91 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -123,7 +123,7 @@ exports.signupValidation = async (req, res, next) => { const now=new Date(); await Promise.all([ - db["Subscription"].create({ numberOfDays: config.freeAccountTimingInDays, numberOfDays: config.defaultReceiptDays, UserId: datas.User.id }), + db["Subscription"].create({ numberOfDays: config.freeAccountTimingInDays, receiptDays: config.defaultReceiptDays, UserId: datas.User.id }), db["User"].update({ connectedAt: now }, { where: { id : datas.User.id }, limit:1 }) ]); const newUser=await creaUserJson(datas.User.id); @@ -131,8 +131,8 @@ exports.signupValidation = async (req, res, next) => { USER_NAME: datas.User.name, NOM_SITE : config.siteName, - EMAIL : config.senderEmail, - LINK_URL : config.siteUrl+"/"+configTpl.connectionPage + EMAIL: config.senderEmail, + LINK_URL: config.siteUrl+"/"+configTpl.connectionPage }; const mailDatas = {