#6900 rectificative filter #2845
|
@ -157,8 +157,8 @@ module.exports = Self => {
|
||||||
case 'correctingFk':
|
case 'correctingFk':
|
||||||
if (!correcteds.length && !args.correctingFk) return;
|
if (!correcteds.length && !args.correctingFk) return;
|
||||||
|
|||||||
return args.correctingFk
|
return args.correctingFk
|
||||||
? {['ii.id']: {inq: correcteds.map(x => x.correctingFk)}}
|
? {'ii.id': {inq: correcteds.map(x => x.correctingFk)}}
|
||||||
: {['ii.id']: {nin: correcteds.map(x => x.correctingFk)}};
|
: {'ii.id': {nin: correcteds.map(x => x.correctingFk)}};
|
||||||
case 'correctedFk':
|
case 'correctedFk':
|
||||||
return {'ii.id': {inq: correctings.map(x => x.correctingFk)}};
|
return {'ii.id': {inq: correctings.map(x => x.correctingFk)}};
|
||||||
case 'supplierActivityFk':
|
case 'supplierActivityFk':
|
||||||
|
|
Loading…
Reference in New Issue
Si no pongo esto forma un where vacío.