From 670e93c0f439abb739431b4c50a26d7dcaca602c Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 13 Nov 2021 09:37:42 +0100 Subject: [PATCH] :shirt: Fix lint issue --- packages/cli/src/Server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 655ef52e7..9cf50c40b 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -1580,11 +1580,11 @@ class App { const findQuery = {} as FindManyOptions; if (req.query.filter) { findQuery.where = JSON.parse(req.query.filter as string); - if ((findQuery.where! as IDataObject).id !== undefined) { + if (findQuery.where.id !== undefined) { // No idea if multiple where parameters make db search // slower but to be sure that that is not the case we // remove all unnecessary fields in case the id is defined. - findQuery.where = { id: (findQuery.where! as IDataObject).id }; + findQuery.where = { id: findQuery.where.id }; } }