query result formatter

This commit is contained in:
Julian Krauser 2024-12-27 13:17:23 +01:00
parent d7b92aedc1
commit 5a59a63e4a
3 changed files with 56 additions and 2 deletions

View file

@ -91,7 +91,7 @@ export async function executeQuery(req: Request, res: Response): Promise<any> {
res.json({
stats: "success",
rows: rows,
rows: DynamicQueryBuilder.flattenQueryResult(rows),
total: total,
offset: offset,
count: count,