mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Add a fromV2 flag to Analytics events, when coming from V2 instance
This commit is contained in:
@@ -37,6 +37,8 @@ module.exports =
|
||||
method:"POST"
|
||||
timeout:1000
|
||||
url: "/user/#{user_id}/event"
|
||||
if settings.overleaf?
|
||||
opts.qs = {fromV2: 1}
|
||||
makeRequest opts, callback
|
||||
|
||||
updateEditingSession: (userId, projectId, segmentation = {}, callback = (error) ->) ->
|
||||
@@ -52,6 +54,8 @@ module.exports =
|
||||
qs:
|
||||
userId: userId
|
||||
projectId: projectId
|
||||
if settings.overleaf?
|
||||
opts.qs.fromV2 = 1
|
||||
makeRequest opts, callback
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user