Explorar el Código

Merge pull request #2045 from overleaf/hb-fix-ipmatcher-dash-call

checking ip matcher on dash load correctly

GitOrigin-RevId: dae581808d0bdc57b7bbc3601729e54e773b6c7f
Simon Detheridge hace 7 años
padre
commit
1d13f41163
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      services/web/app/src/Features/Project/ProjectController.js

+ 2 - 3
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()
+              )
             }
           })
         }