This commit is contained in:
Benjamin Toby
2025-02-19 20:38:56 +01:00
parent 50468e24c0
commit b9f012cb9b
236 changed files with 564 additions and 482 deletions
@@ -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;
}
}