mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use makeRequest func in analytics manager
This commit is contained in:
parent
a822cc0c92
commit
5b3cd7ed2b
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ module.exports =
|
|||
method:"POST"
|
||||
timeout:1000
|
||||
url: "#{settings.apis.analytics.url}/user/#{user_id}/event"
|
||||
request opts, callback
|
||||
makeRequest opts, callback
|
||||
|
||||
|
||||
getLastOccurance: (user_id, event, callback = (error) ->) ->
|
||||
|
@ -37,7 +37,7 @@ module.exports =
|
|||
method:"POST"
|
||||
timeout:1000
|
||||
url: "#{settings.apis.analytics.url}/user/#{user_id}/event/last_occurnace"
|
||||
request opts, (err, response, body)->
|
||||
makeRequest opts, (err, response, body)->
|
||||
if err?
|
||||
console.log response, opts
|
||||
logger.err {user_id, err}, "error getting last occurance of event"
|
||||
|
|
Loading…
Reference in a new issue