Debug enregistrement nombre de jours de l'abonnement lors de la validation d'une création de compte.
This commit is contained in:
parent
fc9a2f9301
commit
1d3f30842e
@ -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 =
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user