From 069769a5a6fb58b455fed8f875efbcc12d536fb6 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 8 Nov 2021 18:27:18 +0000 Subject: [PATCH] Linting. --- packages/server/src/api/controllers/row/ExternalRequest.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts index 7222fff0d9..241d1e96f8 100644 --- a/packages/server/src/api/controllers/row/ExternalRequest.ts +++ b/packages/server/src/api/controllers/row/ExternalRequest.ts @@ -181,7 +181,10 @@ module External { function fixArrayTypes(row: Row, table: Table) { for (let [fieldName, schema] of Object.entries(table.schema)) { - if (schema.type === FieldTypes.ARRAY && typeof row[fieldName] === "string") { + if ( + schema.type === FieldTypes.ARRAY && + typeof row[fieldName] === "string" + ) { try { row[fieldName] = JSON.parse(row[fieldName]) } catch (err) {