mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #19109 from overleaf/tm-project-joined-add-project-id
Add projectId to project-joined event GitOrigin-RevId: 222e0acc8764592344e384d1a6a5a2327d4161f5
This commit is contained in:
parent
d21da7d084
commit
70bf7b2aab
2 changed files with 4 additions and 2 deletions
|
@ -156,6 +156,7 @@ const TokenAccessHandler = {
|
|||
projectId = new ObjectId(projectId.toString())
|
||||
Analytics.recordEventForUserInBackground(userId, 'project-joined', {
|
||||
mode: 'read-only',
|
||||
projectId: projectId.toString(),
|
||||
})
|
||||
|
||||
return await Project.updateOne(
|
||||
|
@ -173,6 +174,7 @@ const TokenAccessHandler = {
|
|||
projectId = new ObjectId(projectId.toString())
|
||||
Analytics.recordEventForUserInBackground(userId, 'project-joined', {
|
||||
mode: 'read-write',
|
||||
projectId: projectId.toString(),
|
||||
})
|
||||
|
||||
return await Project.updateOne(
|
||||
|
|
|
@ -130,7 +130,7 @@ describe('TokenAccessHandler', function () {
|
|||
this.Analytics.recordEventForUserInBackground,
|
||||
this.userId,
|
||||
'project-joined',
|
||||
{ mode: 'read-only' }
|
||||
{ mode: 'read-only', projectId: this.projectId.toString() }
|
||||
)
|
||||
})
|
||||
|
||||
|
@ -178,7 +178,7 @@ describe('TokenAccessHandler', function () {
|
|||
this.Analytics.recordEventForUserInBackground,
|
||||
this.userId,
|
||||
'project-joined',
|
||||
{ mode: 'read-write' }
|
||||
{ mode: 'read-write', projectId: this.projectId.toString() }
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue