diff --git a/packages/server/src/api/controllers/query/index.ts b/packages/server/src/api/controllers/query/index.ts index 234508ef32..0dba20dacd 100644 --- a/packages/server/src/api/controllers/query/index.ts +++ b/packages/server/src/api/controllers/query/index.ts @@ -31,8 +31,7 @@ const Runner = new Thread(ThreadType.QUERY, { function validateQueryInputs(parameters: Record) { for (let entry of Object.entries(parameters)) { - const key = entry[0], - value = entry[1] + const [key, value] = entry if (typeof value !== "string") { continue }