mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Update markAsReadByKeyOnly
url.
This commit is contained in:
parent
a9042ff324
commit
a7bc8bffe0
2 changed files with 7 additions and 7 deletions
|
@ -66,7 +66,7 @@ module.exports =
|
||||||
# should not be exposed to user via ui/router
|
# should not be exposed to user via ui/router
|
||||||
markAsReadByKeyOnly: (key, callback)->
|
markAsReadByKeyOnly: (key, callback)->
|
||||||
opts =
|
opts =
|
||||||
uri: "#{settings.apis.notifications?.url}/notification/key/#{key}"
|
uri: "#{settings.apis.notifications?.url}/key/#{key}"
|
||||||
method: "DELETE"
|
method: "DELETE"
|
||||||
timeout: oneSecond
|
timeout: oneSecond
|
||||||
logger.log {key:key}, "sending mark notification as read with key-only to notifications api"
|
logger.log {key:key}, "sending mark notification as read with key-only to notifications api"
|
||||||
|
|
|
@ -77,7 +77,7 @@ describe 'NotificationsHandler', ->
|
||||||
it 'should send a delete request when a delete has been received to mark a notification', (done)->
|
it 'should send a delete request when a delete has been received to mark a notification', (done)->
|
||||||
@handler.markAsReadByKeyOnly @key, =>
|
@handler.markAsReadByKeyOnly @key, =>
|
||||||
opts =
|
opts =
|
||||||
uri: "#{notificationUrl}/notification/key/#{@key}"
|
uri: "#{notificationUrl}/key/#{@key}"
|
||||||
timeout:1000
|
timeout:1000
|
||||||
method: "DELETE"
|
method: "DELETE"
|
||||||
@request.calledWith(opts).should.equal true
|
@request.calledWith(opts).should.equal true
|
||||||
|
|
Loading…
Reference in a new issue