Correct typo
CreateUser() -> createUser()
This commit is contained in:
1 parent
d0890347dc
commit
389fd21975
1 file changed
+1
-1
+1
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user