From e4e84a91ed424160e8644e1a1a3ab36a66f5b03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20PENHO=C3=8BT?= Date: Tue, 15 Sep 2020 11:34:10 +0200 Subject: [PATCH] =?UTF-8?q?Debug=20script=20envoi=20relance=20fin=20abonne?= =?UTF-8?q?ment=20pr=C3=A9mium?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/subscription.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/subscription.js b/controllers/subscription.js index d562543..c304369 100644 --- a/controllers/subscription.js +++ b/controllers/subscription.js @@ -129,7 +129,7 @@ exports.notifyExpirationAccount= async(req, res, next) => } const sendNotification= async (user, mail) => { - let userInfos=await searchUserById(user.UserId); + let userInfos=await userCtrl.searchUserById(user.UserId); if(userInfos && userInfos.User.status=="user") { const mapMail =