mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
update to new metrics api
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user