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:
Kristaps Fabians Geikins
2024-07-11 11:45:11 +03:00
committed by GitHub
parent 790d97383c
commit ee5ae8af62
43 changed files with 774 additions and 347 deletions
@@ -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()