diff options
Diffstat (limited to 'packages/console/core/src/workspace.ts')
| -rw-r--r-- | packages/console/core/src/workspace.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/console/core/src/workspace.ts b/packages/console/core/src/workspace.ts index e6356e49d..6119f51df 100644 --- a/packages/console/core/src/workspace.ts +++ b/packages/console/core/src/workspace.ts @@ -1,7 +1,7 @@ import { z } from "zod" import { fn } from "./util/fn" import { Actor } from "./actor" -import { Database, sql } from "./drizzle" +import { Database } from "./drizzle" import { Identifier } from "./identifier" import { UserTable } from "./schema/user.sql" import { BillingTable } from "./schema/billing.sql" @@ -20,7 +20,6 @@ export namespace Workspace { workspaceID, id: Identifier.create("user"), accountID: account.properties.accountID, - email: account.properties.email, name: "", role: "admin", }) @@ -35,9 +34,7 @@ export namespace Workspace { { workspaceID, }, - async () => { - await Key.create({ name: "Default API Key" }) - }, + () => Key.create({ name: "Default API Key" }), ) return workspaceID }) |
