From 928b2f580741db9e2ee363bc8631f50f245f5a74 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 26 Mar 2024 09:44:50 +0100 Subject: [PATCH] refs #6427 revert vn-user changes --- back/models/vn-user.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/back/models/vn-user.js b/back/models/vn-user.js index e700217d8..dc1d6dfae 100644 --- a/back/models/vn-user.js +++ b/back/models/vn-user.js @@ -120,13 +120,10 @@ module.exports = function(Self) { const options = Object.assign({}, info.options); for (const param in options) params[param] = options[param]; - if (info.options?.usesPhone) - await Self.app.models.Sms.send({req: {accessToken: info.accessToken}}, +info.options.phone, params.url); - else { - const email = new Email(options.emailTemplate, params); - return email.send(); - } + const email = new Email(options.emailTemplate, params); + + return email.send(); }); /**