Merge pull request #2752 from overleaf/ta-notifications-mark-as-read-fix

Fix `markAsRead` Calls

GitOrigin-RevId: 89609251a082adb825522141864cd3f44315ae45
This commit is contained in:
Miguel Serrano 2020-04-22 11:36:02 +02:00 committed by Copybot
parent 533b395210
commit ac1a7c4c52

View file

@ -39,7 +39,7 @@ module.exports = {
if (callback == null) { if (callback == null) {
callback = function() {} callback = function() {}
} }
return NotificationsHandler.markAsRead(this.key, callback) return NotificationsHandler.markAsReadByKeyOnly(this.key, callback)
} }
} }
}, },
@ -66,7 +66,7 @@ module.exports = {
if (callback == null) { if (callback == null) {
callback = function() {} callback = function() {}
} }
return NotificationsHandler.markAsRead(this.key, callback) return NotificationsHandler.markAsReadByKeyOnly(this.key, callback)
} }
} }
}, },