We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1db8a commit e4739a9Copy full SHA for e4739a9
1 file changed
apps/web/src/app/api/autumn/[...all]/identify.ts
@@ -19,7 +19,7 @@ export async function identify(request: Request) {
19
if (!session?.user) return null
20
21
// Billing is per-org — use activeOrganizationId to match backend billing checks
22
- const customerId = session.session.activeOrganizationId ?? session.user.id
+ const customerId = session.session?.activeOrganizationId ?? session.user.id
23
return {
24
customerId,
25
customerData: {
0 commit comments