Revert "데모용 임시 회원가입 구현"

This reverts commit eb913366646f43fda669f0550788e0888c44b95a.
This commit is contained in:
static
2025-05-31 21:36:27 +09:00
parent 451dd3c129
commit 2a5200fe9d
8 changed files with 5 additions and 134 deletions

View File

@@ -7,15 +7,6 @@ interface User {
password: string;
}
export const createUser = async (email: string, nickname: string, password: string) => {
const { id } = await db
.insertInto("user")
.values({ email, nickname, password })
.returning("id")
.executeTakeFirstOrThrow();
return { id, email, nickname, password } satisfies User;
};
export const getUser = async (userId: number) => {
const user = await db
.selectFrom("user")