File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
worker/src/api/controllers/global Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ const identifyInstallationGroup = async (
122
122
const identifyTenantGroup = async (
123
123
tenantId : string ,
124
124
hosting : Hosting ,
125
- timestamp ?: string | number
125
+ timestamp : number ,
126
+ version = env . VERSION
126
127
) : Promise < void > => {
127
128
const id = await getEventTenantId ( tenantId )
128
129
const type = IdentityType . TENANT
@@ -135,6 +136,8 @@ const identifyTenantGroup = async (
135
136
hosting,
136
137
environment,
137
138
installationId,
139
+ createdAt : timestamp ,
140
+ createdVersion : version ,
138
141
}
139
142
140
143
await identifyGroup ( group , timestamp )
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export interface TenantGroup extends Group {
19
19
// as we don't have this at the user level
20
20
profession ?: string // only available in cloud
21
21
companySize ?: string // only available in cloud
22
+ createdAt ?: string | number
23
+ createdVersion : string
22
24
installationId : string
23
25
}
24
26
Original file line number Diff line number Diff line change @@ -250,7 +250,8 @@ export const adminUser = async (
250
250
251
251
await events . identification . identifyTenantGroup (
252
252
tenantId ,
253
- env . SELF_HOSTED ? Hosting . SELF : Hosting . CLOUD
253
+ env . SELF_HOSTED ? Hosting . SELF : Hosting . CLOUD ,
254
+ Date . now ( )
254
255
)
255
256
256
257
ctx . body = {
You can’t perform that action at this time.
0 commit comments