summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/account.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-10-16 22:27:28 -0400
committerFrank <[email protected]>2025-10-16 22:28:34 -0400
commit1947580b08b04fc8d81841fa6017f721dec6a3da (patch)
tree5c157189a344ca22d49dac396261182d45251f65 /packages/console/core/src/account.ts
parentca9b13e8a2626aca3bb28882cff395c18e0a215c (diff)
downloadopencode-1947580b08b04fc8d81841fa6017f721dec6a3da.tar.gz
opencode-1947580b08b04fc8d81841fa6017f721dec6a3da.zip
wip: zen
Diffstat (limited to 'packages/console/core/src/account.ts')
-rw-r--r--packages/console/core/src/account.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/packages/console/core/src/account.ts b/packages/console/core/src/account.ts
index f246c8e1a..c7e096586 100644
--- a/packages/console/core/src/account.ts
+++ b/packages/console/core/src/account.ts
@@ -8,7 +8,6 @@ import { AccountTable } from "./schema/account.sql"
export namespace Account {
export const create = fn(
z.object({
- email: z.string().email(),
id: z.string().optional(),
}),
async (input) =>
@@ -16,7 +15,6 @@ export namespace Account {
const id = input.id ?? Identifier.create("account")
await tx.insert(AccountTable).values({
id,
- email: input.email,
})
return id
}),
@@ -32,15 +30,4 @@ export namespace Account {
.then((rows) => rows[0])
}),
)
-
- export const fromEmail = fn(z.string().email(), async (email) =>
- Database.transaction(async (tx) => {
- return tx
- .select()
- .from(AccountTable)
- .where(eq(AccountTable.email, email))
- .execute()
- .then((rows) => rows[0])
- }),
- )
}