update to new api

This commit is contained in:
Shane Kilkelly 2017-03-17 15:19:25 +00:00
parent 54af5fec96
commit 31128a2580

View file

@ -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)