Skip to content

Commit 0a37436

Browse files
committed
fix: correctly update session
1 parent ecbf315 commit 0a37436

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/api/src/typed-handlers/member-handlers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export const updateMemberHandler = typedHandler<
114114
}
115115
await authKv.put(
116116
session.session.token,
117-
JSON.stringify({ ...data, user: { ...data.user, timezone: userUpdates.timezone } }),
117+
JSON.stringify({
118+
...data,
119+
user: { ...data.user, ...updatedMember.user },
120+
}),
118121
);
119122
}
120123

0 commit comments

Comments
 (0)