Unified · Split
| @@ -915,7 +915,7 @@ export const createWorkspace = mutation({ · 914 unmodified lines | |||
| 915 | userId: user._id, | 915 | userId: user._id, |
| 916 | role: user.role, | 916 | role: user.role, |
| 917 | status: user.status, | 917 | status: user.status, |
| 918 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${String(workspace._id)}`, | 918 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${workspace._id}`, |
| 919 | }; | 919 | }; |
| 920 | }, | 920 | }, |
| 921 | }); | 921 | }); |
| @@ -934,7 +934,10 @@ export const generateWorkspaceIconUploadUrl = mutation({ · 12 unmodified lines | |||
| 934 | }, | 934 | }, |
| 935 | }); | 935 | }); |
| 936 | 936 | ||
| 937 | async function resolveAccountForRequest(ctx: { auth: any; db: any }, sessionId?: string): Promise<Doc<"accounts"> | null> { | 937 | async function resolveAccountForRequest( |
| 938 | ctx: Pick<MutationCtx, "auth" | "db"> | Pick<QueryCtx, "auth" | "db">, | ||
| 939 | sessionId?: string, | ||
| 940 | ): Promise<Doc<"accounts"> | null> { | ||
| 938 | const identity = await ctx.auth.getUserIdentity(); | 941 | const identity = await ctx.auth.getUserIdentity(); |
| 939 | if (identity) { | 942 | if (identity) { |
| 940 | return await ctx.db | 943 | return await ctx.db |
| @@ -985,7 +988,7 @@ export const getMyWorkspaces = query({ · 44 unmodified lines | |||
| 985 | userId: membership._id, | 988 | userId: membership._id, |
| 986 | role: membership.role, | 989 | role: membership.role, |
| 987 | status: membership.status, | 990 | status: membership.status, |
| 988 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${String(workspace._id)}`, | 991 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${workspace._id}`, |
| 989 | }; | 992 | }; |
| 990 | }), | 993 | }), |
| 991 | ); | 994 | ); |
| @@ -1020,7 +1023,7 @@ export const getMyAccountsWithWorkspaces = query({ · 28 unmodified lines | |||
| 1020 | userId: membership._id, | 1023 | userId: membership._id, |
| 1021 | role: membership.role, | 1024 | role: membership.role, |
| 1022 | status: membership.status, | 1025 | status: membership.status, |
| 1023 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${String(workspace._id)}`, | 1026 | runtimeWorkspaceId: workspace.legacyWorkspaceId ?? `ws_${workspace._id}`, |
| 1024 | }; | 1027 | }; |
| 1025 | }), | 1028 | }), |
| 1026 | ); | 1029 | ); |