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

pull/188/head
tycrek 1 year 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
*/
export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: User }): Promise<User> => new Promise(async (resolve, reject) => {
// todo: finish this
export const createNewUser = (username: string, password: string, admin: boolean, meta?: { [key: string]: any }): Promise<User> => new Promise(async (resolve, reject) => {
// Create a new user object
const newUser: User = {

Loading…
Cancel
Save