mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
👕 Fix lint issue
This commit is contained in:
parent
357178d83b
commit
670e93c0f4
|
@ -1580,11 +1580,11 @@ 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);
|
||||||
if ((findQuery.where! as IDataObject).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.
|
||||||
findQuery.where = { id: (findQuery.where! as IDataObject).id };
|
findQuery.where = { id: findQuery.where.id };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue