From e0744000a44d24c167ab4e4ab1b4dbd28f700f71 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]