From 1d13f411631c67b236d4bafc86b61d2343770575 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Wed, 7 Aug 2019 15:04:34 +0100 Subject: [PATCH] Merge pull request #2045 from overleaf/hb-fix-ipmatcher-dash-call checking ip matcher on dash load correctly GitOrigin-RevId: dae581808d0bdc57b7bbc3601729e54e773b6c7f --- services/web/app/src/Features/Project/ProjectController.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index b941b650e7..831b27e02f 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -420,10 +420,9 @@ module.exports = ProjectController = { user ) { if (req.ip !== user.lastLoginIp) { - return NotificationsBuilder.ipMatcherAffiliation( - user._id, + return NotificationsBuilder.ipMatcherAffiliation(user._id).create( req.ip - ).create() + ) } }) }