mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
🔨 Fix build
This commit is contained in:
@@ -1596,10 +1596,12 @@ class App {
|
|||||||
const findQuery = {} as FindManyOptions;
|
const findQuery = {} as FindManyOptions;
|
||||||
if (req.query.filter) {
|
if (req.query.filter) {
|
||||||
findQuery.where = JSON.parse(req.query.filter as string);
|
findQuery.where = JSON.parse(req.query.filter as string);
|
||||||
|
// @ts-ignore
|
||||||
if (findQuery.where.id !== undefined) {
|
if (findQuery.where.id !== undefined) {
|
||||||
// No idea if multiple where parameters make db search
|
// No idea if multiple where parameters make db search
|
||||||
// slower but to be sure that that is not the case we
|
// slower but to be sure that that is not the case we
|
||||||
// remove all unnecessary fields in case the id is defined.
|
// remove all unnecessary fields in case the id is defined.
|
||||||
|
// @ts-ignore
|
||||||
findQuery.where = { id: findQuery.where.id };
|
findQuery.where = { id: findQuery.where.id };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export async function loadLanguage(language?: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const baseText = require(`./locales/${language}`).default; // TODO i18n: `path.join()`
|
const baseText = require(`./locales/${language}`).default; // TODO i18n: `path.join()`
|
||||||
console.log(baseText);
|
|
||||||
i18n.setLocaleMessage(language, baseText);
|
i18n.setLocaleMessage(language, baseText);
|
||||||
loadedLanguages.push(language);
|
loadedLanguages.push(language);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user