From faaaa8d572a781fbf60645d5ea7fd0374721d316 Mon Sep 17 00:00:00 2001 From: tycrek Date: Sat, 24 Dec 2022 21:04:50 -0700 Subject: [PATCH] fix: this shouldn't be an entire `User`, that makes no sense --- src/auth.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 0afac37..7b7d1d7 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -94,9 +94,7 @@ const migrate = (authFileName = 'auth.json'): Promise => new Promise(asyn /** * This is a WIP */ -export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: User }): Promise => new Promise(async (resolve, reject) => { - - // todo: finish this +export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: any }): Promise => new Promise(async (resolve, reject) => { // Create a new user object const newUser: User = {