From 55b9b00771935320a70691bd0005c708e451c0b8 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 19 Mar 2024 14:50:38 +0000 Subject: [PATCH] PR comments. --- packages/server/src/api/controllers/query/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }