Skip to content

Commit 1947580

Browse files
committed
wip: zen
1 parent ca9b13e commit 1947580

File tree

14 files changed

+1096
-147
lines changed

14 files changed

+1096
-147
lines changed

bun.lock

Lines changed: 81 additions & 91 deletions
Large diffs are not rendered by default.

packages/console/app/src/routes/workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const getUserEmail = query(async (workspaceID: string) => {
1212
"use server"
1313
return withActor(async () => {
1414
const actor = Actor.assert("user")
15-
const email = await User.getAccountEmail(actor.properties.userID)
15+
const email = await User.getAuthEmail(actor.properties.userID)
1616
return email
1717
}, workspaceID)
1818
}, "userEmail")

packages/console/app/src/routes/workspace/[id]/members/member-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function MemberRow(props: { member: any; workspaceID: string; actorID: string; a
139139

140140
return (
141141
<tr>
142-
<td data-slot="member-email">{props.member.accountEmail ?? props.member.email}</td>
142+
<td data-slot="member-email">{props.member.authEmail ?? props.member.email}</td>
143143
<td data-slot="member-role">
144144
<Show when={store.editing && !isCurrentUser()} fallback={<span>{props.member.role}</span>}>
145145
<RoleDropdown
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE `account` DROP INDEX `email`;--> statement-breakpoint
2+
CREATE INDEX `account_id` ON `auth` (`account_id`);--> statement-breakpoint
3+
ALTER TABLE `account` DROP COLUMN `email`;

0 commit comments

Comments
 (0)