fix(fe2): accept invite before onboarding after sign up (#2491)
* explicitly ordering global middlewares * various subscription fixes & WIP project invite middleware * SSR invite accept & toast notifs seem to work * backend support for mixpanel * mixpanel be logic -> shared * minor fix * finissh * lint fix * minor comment adjustments * better adblock handling
This commit is contained in:
committed by
GitHub
parent
790d97383c
commit
ee5ae8af62
@@ -188,7 +188,7 @@ export async function mixpanelTrackerHelperMiddleware(
|
||||
) {
|
||||
const ctx = req.context
|
||||
const user = ctx.userId ? await getUser(ctx.userId) : null
|
||||
const mp = mixpanel({ userEmail: user?.email })
|
||||
const mp = mixpanel({ userEmail: user?.email, req })
|
||||
|
||||
req.mixpanel = mp
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user