More extensive logs
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled

This commit is contained in:
Konstantin Wohlwend 2025-02-13 17:49:17 -08:00
parent a444e13342
commit 6074e267bc

View File

@ -64,7 +64,10 @@ async function rawQueryArray<Q extends RawQuery<any>[]>(queries: Q): Promise<[]
description: `raw SQL quer${queries.length === 1 ? "y" : `ies (${queries.length} total)`}`,
attributes: {
"stack.raw-queries.length": queries.length,
...Object.fromEntries(queries.map((q, index) => [`stack.raw-queries.${index}`, q.sql.text])),
...Object.fromEntries(queries.flatMap((q, index) => [
[`stack.raw-queries.${index}.text`, q.sql.text],
[`stack.raw-queries.${index}.params`, JSON.stringify(q.sql.values)],
])),
},
}, async () => {
if (queries.length === 0) return [] as any;