Correcting not Filter

This commit is contained in:
IgnatzHome 2018-05-20 14:03:48 +02:00
parent 6d9ac3ae48
commit 256ca129f0

View file

@ -243,7 +243,7 @@ class AdvancedFilter {
{ {
const field = commands[i-1].cmd; const field = commands[i-1].cmd;
const str = commands[i+1].cmd; const str = commands[i+1].cmd;
commands[i] = {$not: {'customFields._id':this._fieldNameToId(field), 'customFields.value':str}}; commands[i] = {'customFields._id':this._fieldNameToId(field), 'customFields.value': { $not: str }};
commands.splice(i-1, 1); commands.splice(i-1, 1);
commands.splice(i, 1); commands.splice(i, 1);
//changed = true; //changed = true;