Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey committed Dec 30, 2024
1 parent 09eada8 commit cb0a9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @connect-shared/lib/mixpanel/trackEventAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const trackEventAction = actionClient
.action(async ({ parsedInput, ctx }) => {
const { event: eventName, ...eventPayload } = parsedInput;

let sessionUserId = ctx.session.user?.id || ctx.session.scoutId;
let sessionUserId = ctx.session.user?.id;
const userId = sessionUserId || '';

// TODO: Handle anonymous user ids
Expand Down
2 changes: 1 addition & 1 deletion @connect-shared/lib/session/logoutAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { log } from '@charmverse/core/log';
import { actionClient } from '../actions/actionClient';

export const logoutAction = actionClient.metadata({ actionName: 'logout' }).action(async ({ ctx }) => {
const userId = ctx.session.user?.id || ctx.session.scoutId;
const userId = ctx.session.user?.id;
ctx.session.destroy();
await ctx.session.save();

Expand Down

0 comments on commit cb0a9dc

Please sign in to comment.