Skip to content

Commit a340355

Browse files
author
Petr Kachanovsky
committed
fix: fix count query for mysql data connector
1 parent ae5731c commit a340355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/dataConnectors/mysql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class MysqlConnector extends AdminForthBaseConnector implements IAdminForthDataS
232232
console.log('🪲📜 MySQL Q:', q, 'values:', filterValues);
233233
}
234234
const [results] = await this.client.query(q, filterValues);
235-
return +results[0].count;
235+
return +results[0]["COUNT(*)"];
236236
}
237237

238238
async getMinMaxForColumnsWithOriginalTypes({ resource, columns }) {

0 commit comments

Comments
 (0)