#1758 Añadir los alias como prefijos en los filtros
This commit is contained in:
parent
c46797d57e
commit
fe5a77257f
|
@ -77,11 +77,11 @@ module.exports = Self => {
|
|||
let where = buildFilter(ctx.args, (param, value) => {
|
||||
switch (param) {
|
||||
case 'search':
|
||||
return {ref: {like: `%${value}%`}};
|
||||
return {'i.ref': {like: `%${value}%`}};
|
||||
case 'min':
|
||||
return {amount: {gte: value}};
|
||||
return {'i.amount': {gte: value}};
|
||||
case 'max':
|
||||
return {amount: {lte: value}};
|
||||
return {'i.amount': {lte: value}};
|
||||
case 'hasPdf':
|
||||
return {'i.hasPdf': value};
|
||||
case 'created':
|
||||
|
|
Loading…
Reference in New Issue