This commit is contained in:
Benjamin Toby
2025-02-19 20:01:50 +01:00
parent c08db13f3d
commit e9bb9fb07f
113 changed files with 253 additions and 63 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;
}
}