mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-14 22:08:45 +00:00
9 lines
267 B
TypeScript
9 lines
267 B
TypeScript
import { eq } from "drizzle-orm";
|
|
import db from "./drizzle";
|
|
import { user } from "./schema";
|
|
|
|
export const getUserByEmail = async (email: string) => {
|
|
const users = await db.select().from(user).where(eq(user.email, email)).limit(1);
|
|
return users[0] ?? null;
|
|
};
|