fix: this shouldn't be an entire `User`, that makes no sense

pull/188/head
tycrek 2 years ago
parent d7b57e5e95
commit faaaa8d572
No known key found for this signature in database
GPG Key ID: FF8A54DCE404885A

@ -94,9 +94,7 @@ const migrate = (authFileName = 'auth.json'): Promise<Users> => new Promise(asyn
/** /**
* This is a WIP * This is a WIP
*/ */
export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: User }): Promise<User> => new Promise(async (resolve, reject) => { export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: any }): Promise<User> => new Promise(async (resolve, reject) => {
// todo: finish this
// Create a new user object // Create a new user object
const newUser: User = { const newUser: User = {

Loading…
Cancel
Save