feat: refs #6583 add new opt in where builder
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-11-06 13:42:36 +01:00
parent c899727bfc
commit 679dd6929b
1 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,11 @@ module.exports = Self => {
type: 'number', type: 'number',
description: 'Department identifier' description: 'Department identifier'
}, },
{
arg: 'onlyWithDestination',
type: 'Boolean',
description: 'True when only tickets with destination are returned'
},
{ {
arg: 'filter', arg: 'filter',
type: 'object', type: 'object',
@ -103,6 +108,9 @@ module.exports = Self => {
return {'f.isFullMovable': value}; return {'f.isFullMovable': value};
case 'departmentFk': case 'departmentFk':
return {'f.departmentFk': value}; return {'f.departmentFk': value};
case 'onlyWithDestination':
if (!value) return;
return {'f.id': {neq: null}};
} }
}); });