diff --git a/lib/db/user.ts b/lib/db/user.ts index d7b7be4..6a4f6d4 100644 --- a/lib/db/user.ts +++ b/lib/db/user.ts @@ -89,7 +89,7 @@ export async function getUserByUsername(username: string) { * @param data - object with username, password and optional role * @returns {"success": boolean, "user": {"id":number, "username": string, "role": string}} */ -export async function CreateUser(data: { username: string; password: string; role?: string }) { +export async function createUser(data: { username: string; password: string; role?: string }) { try{ const hash = await argon2.hash(data.password); const user = await prisma.user.create({