From 1e9234da8ebd912be1d8e87c62a0c19e8a7b6d28 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Tue, 23 Aug 2022 15:33:30 +0100 Subject: [PATCH] lint --- packages/server/src/integrations/mongodb.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/mongodb.ts b/packages/server/src/integrations/mongodb.ts index f026f36ad4..9f1d41d2ec 100644 --- a/packages/server/src/integrations/mongodb.ts +++ b/packages/server/src/integrations/mongodb.ts @@ -92,8 +92,10 @@ module MongoDBModule { if (json[field] instanceof Object) { json[field] = self.createObjectIds(json[field]) } - if (typeof json[field] === "string" && json[field].toLowerCase().startsWith("objectid")) - { + if ( + typeof json[field] === "string" && + json[field].toLowerCase().startsWith("objectid") + ) { const id = json[field].match( /(?<=objectid\(['"]).*(?=['"]\))/gi )?.[0]