From c98772c9271c8c0b16a9757c591f5134f724c517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 17 Nov 2021 11:29:27 +0100 Subject: [PATCH] :hammer: Fix build --- packages/cli/src/Server.ts | 2 ++ packages/editor-ui/src/i18n/index.ts | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 67c5f406c3..aae073ec60 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -1596,10 +1596,12 @@ class App { const findQuery = {} as FindManyOptions; if (req.query.filter) { findQuery.where = JSON.parse(req.query.filter as string); + // @ts-ignore 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. + // @ts-ignore findQuery.where = { id: findQuery.where.id }; } } diff --git a/packages/editor-ui/src/i18n/index.ts b/packages/editor-ui/src/i18n/index.ts index d81da860cd..6db3c8b0a1 100644 --- a/packages/editor-ui/src/i18n/index.ts +++ b/packages/editor-ui/src/i18n/index.ts @@ -40,7 +40,6 @@ export async function loadLanguage(language?: string) { } const baseText = require(`./locales/${language}`).default; // TODO i18n: `path.join()` - console.log(baseText); i18n.setLocaleMessage(language, baseText); loadedLanguages.push(language);