소스 검색

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

checking ip matcher on dash load correctly

GitOrigin-RevId: dae581808d0bdc57b7bbc3601729e54e773b6c7f
Simon Detheridge 7 년 전
부모
커밋
1d13f41163
1개의 변경된 파일과 2개의 추가작업 그리고 3개의 파일을 삭제
  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()
+              )
             }
           })
         }