feat: require account owners for workspaces
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
export type WorkspaceSummary = {
|
||||
workspace_id: string;
|
||||
owner_account_id: string | null;
|
||||
owner_account_id: string;
|
||||
display_name: string;
|
||||
state: string;
|
||||
created_at: string;
|
||||
|
||||
@@ -243,7 +243,7 @@ function workspaceSummary(value: unknown, path: string): WorkspaceSummary {
|
||||
);
|
||||
return {
|
||||
workspace_id: string(item.workspace_id, `${path}.workspace_id`),
|
||||
owner_account_id: nullableString(
|
||||
owner_account_id: string(
|
||||
item.owner_account_id,
|
||||
`${path}.owner_account_id`,
|
||||
),
|
||||
|
||||
@@ -38,7 +38,7 @@ Deno.test("workspace catalog enriches each visible workspace without dropping si
|
||||
return Promise.resolve(Response.json([
|
||||
{
|
||||
workspace_id: "w-a",
|
||||
owner_account_id: null,
|
||||
owner_account_id: "account-1",
|
||||
display_name: "Alpha",
|
||||
state: "active",
|
||||
created_at: "1",
|
||||
@@ -46,7 +46,7 @@ Deno.test("workspace catalog enriches each visible workspace without dropping si
|
||||
},
|
||||
{
|
||||
workspace_id: "w-b",
|
||||
owner_account_id: null,
|
||||
owner_account_id: "account-1",
|
||||
display_name: "Beta",
|
||||
state: "active",
|
||||
created_at: "1",
|
||||
|
||||
Reference in New Issue
Block a user