Merge pull request #316 from sharelatex/afc-fix-typo-in-path

Update analytics manager to use new path
This commit is contained in:
Shane Kilkelly
2018-02-13 09:39:09 +00:00
committed by GitHub
4 changed files with 12 additions and 12 deletions
@@ -63,14 +63,14 @@ module.exports =
makeRequest opts, callback
getLastOccurance: (user_id, event, callback = (error) ->) ->
getLastOccurrence: (user_id, event, callback = (error) ->) ->
opts =
body:
event:event
json:true
method:"POST"
timeout:1000
url: "/user/#{user_id}/event/last_occurnace"
url: "/user/#{user_id}/event/last_occurrence"
makeRequest opts, (err, response, body)->
if err?
console.log response, opts
@@ -24,7 +24,7 @@ module.exports = AnnouncementsHandler =
async.parallel {
lastEvent: (cb)->
AnalyticsManager.getLastOccurance user._id, "announcement-alert-dismissed", cb
AnalyticsManager.getLastOccurrence user._id, "announcement-alert-dismissed", cb
announcements: (cb)->
BlogHandler.getLatestAnnouncements cb
}, (err, results)->