Skip to content

Commit 33e61a4

Browse files
committed
fixes for identifyTenant after rebasing
1 parent f5c0089 commit 33e61a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/src/segment/identifyTenant.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export default async function identifyTenant(req) {
1515
},
1616
})
1717
} else if (API_CONFIG.edition === 'community') {
18-
if (!user.email.includes('crowd.dev')) {
18+
if (!req.currentUser.email.includes('crowd.dev')) {
1919
analytics.group({
20-
userId: user.id,
21-
groupId: tenant.id,
20+
userId: req.currentUser.id,
21+
groupId: req.currentTenant.id,
2222
traits: {
23-
createdAt: tenant.createdAt,
23+
createdAt: req.currentTenant.createdAt,
2424
},
2525
})
2626
}

0 commit comments

Comments
 (0)