mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 19:27:12 +00:00
update to new api
This commit is contained in:
parent
54af5fec96
commit
31128a2580
1 changed files with 5 additions and 10 deletions
|
@ -30,13 +30,8 @@ module.exports = LearnedWordsManager =
|
|||
callback null, words
|
||||
|
||||
|
||||
metrics.timeAsyncMethod(
|
||||
LearnedWordsManager, 'learnWord',
|
||||
'LearnedWordsManager.learnWord',
|
||||
logger
|
||||
)
|
||||
metrics.timeAsyncMethod(
|
||||
LearnedWordsManager, 'getLearnedWords',
|
||||
'LearnedWordsManager.getLearnedWords',
|
||||
logger
|
||||
)
|
||||
[
|
||||
'learnWord',
|
||||
'getLearnedWords'
|
||||
].map (method) ->
|
||||
metrics.timeAsyncMethod(LearnedWordsManager, method, 'mongo.LearnedWordsManager', logger)
|
||||
|
|
Loading…
Reference in a new issue