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 =