Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: ctx

+6 -6
+6 -6
packages/api/src/trpc.ts
··· 202 202 // REMINDER: We only track the event if the request was successful 203 203 // REMINDER: We are not blocking the request 204 204 after(async () => { 205 - const { ctx, meta, getRawInput } = opts; 205 + const { meta, getRawInput } = opts; 206 206 if (meta?.track) { 207 207 let identify: IdentifyProps = {}; 208 208 209 - if (ctx.user && ctx.workspace) { 209 + if (user && workspace) { 210 210 identify = { 211 - userId: `usr_${ctx.user.id}`, 212 - email: ctx.user.email || undefined, 213 - workspaceId: String(ctx.workspace.id), 214 - plan: ctx.workspace.plan, 211 + userId: `usr_${user.id}`, 212 + email: user.email || undefined, 213 + workspaceId: String(workspace.id), 214 + plan: workspace.plan, 215 215 }; 216 216 } 217 217