Refactor: registerUser -> createUser

This commit is contained in:
2024-05-16 12:26:27 +03:00
parent 62edbd9cd2
commit a34ed38800
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { registerUser } from '$lib/server/db/user';
import { createUser } from '$lib/server/db/user';
/** @type {import('./$types').PageServerLoad} */
export function load({ cookies }) {
@@ -19,7 +19,7 @@ async function POST({ request }) {
return;
}
const result = await registerUser(username, password);
const result = await createUser(username, password);
console.log(result);
}