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:
parent
22bdaac18b
commit
904670781d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user