From 389fd2197554077e9f8bbf84688237cca81e11d8 Mon Sep 17 00:00:00 2001 From: Mayo Date: Fri, 31 Jul 2026 11:14:44 +0200 Subject: [PATCH] Correct typo CreateUser() -> createUser() --- lib/db/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({