mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
update to new metrics api
This commit is contained in:
parent
e67c546254
commit
5f0bf16c75
1 changed files with 5 additions and 10 deletions
|
@ -82,13 +82,8 @@ module.exports = Notifications =
|
|||
db.notifications.remove searchOps, {justOne: true}, callback
|
||||
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
Notifications, 'getUserNotifications',
|
||||
'Notifications.getUserNotifications',
|
||||
logger
|
||||
)
|
||||
metrics.timeAsyncMethod(
|
||||
Notifications, 'addNotification',
|
||||
'Notifications.addNotification',
|
||||
logger
|
||||
)
|
||||
[
|
||||
'getUserNotifications',
|
||||
'addNotification'
|
||||
].map (method) ->
|
||||
metrics.timeAsyncMethod(Notifications, method, 'mongo.Notifications', logger)
|
||||
|
|
Loading…
Reference in a new issue