mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
update to new metrics api
This commit is contained in:
@@ -31,14 +31,8 @@ module.exports = ContactManager =
|
||||
return callback(error) if error?
|
||||
callback null, user?.contacts
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
ContactManager, 'touchContact',
|
||||
'ContactManager.touchContact',
|
||||
logger
|
||||
)
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
ContactManager, 'getContacts',
|
||||
'ContactManager.getContacts',
|
||||
logger
|
||||
)
|
||||
[
|
||||
'touchContact',
|
||||
'getContacts',
|
||||
].map (method) ->
|
||||
metrics.timeAsyncMethod(ContactManager, method, 'mongo.ContactManager', logger)
|
||||
|
||||
Reference in New Issue
Block a user