1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-01-20 21:01:09 +01:00

fix(MySQL): unable to get users list with some db settings

This commit is contained in:
Fabio Di Stasio 2023-06-01 11:47:31 +02:00
parent 22bdaac18b
commit 904670781d

View File

@ -764,7 +764,7 @@ export class MySQLClient extends AntaresCore {
}
async getUsers () {
const { rows } = await this.raw('SELECT `user`, `host`, authentication_string AS `password` FROM `mysql`.`user`');
const { rows } = await this.raw('SELECT `user` as \'user\', `host` as \'host\', authentication_string AS `password` FROM `mysql`.`user`');
return rows.map(row => {
return {