Updates
This commit is contained in:
@@ -250,7 +250,10 @@ export default async function refreshUsersAndGrants({
|
||||
}
|
||||
}
|
||||
} catch (error: any) {
|
||||
console.log(`Error in adding SQL user =>`, error.message);
|
||||
global.ERROR_CALLBACK?.(
|
||||
`Error Refreshing MariaDB Users and Grants`,
|
||||
error as Error
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,9 +59,9 @@ async function resetSQLCredentialsPasswords() {
|
||||
);
|
||||
}
|
||||
} catch (error: any) {
|
||||
console.log(
|
||||
`Error Updating User ${user.id} Password =>`,
|
||||
error.message
|
||||
global.ERROR_CALLBACK?.(
|
||||
`Error Resetting MariaDB User Password`,
|
||||
error as Error
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ async function createUser() {
|
||||
|
||||
return true;
|
||||
} catch (error: any) {
|
||||
console.log(`Error in creating user => ${error.message}`);
|
||||
global.ERROR_CALLBACK?.(`Error Creating User`, error as Error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ async function createUser() {
|
||||
|
||||
return true;
|
||||
} catch (error: any) {
|
||||
console.log(`Error in creating user => ${error.message}`);
|
||||
global.ERROR_CALLBACK?.(`Error Updating User`, error as Error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user