We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c0089 commit 33e61a4Copy full SHA for 33e61a4
backend/src/segment/identifyTenant.ts
@@ -15,12 +15,12 @@ export default async function identifyTenant(req) {
15
},
16
})
17
} else if (API_CONFIG.edition === 'community') {
18
- if (!user.email.includes('crowd.dev')) {
+ if (!req.currentUser.email.includes('crowd.dev')) {
19
analytics.group({
20
- userId: user.id,
21
- groupId: tenant.id,
+ userId: req.currentUser.id,
+ groupId: req.currentTenant.id,
22
traits: {
23
- createdAt: tenant.createdAt,
+ createdAt: req.currentTenant.createdAt,
24
25
26
}
0 commit comments