fix: refs #6583 update onlyWithDestination logic to handle null values correctly
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-17 12:46:48 +01:00
parent b4c8e16019
commit f965f7aa52
1 changed files with 1 additions and 2 deletions

View File

@ -109,8 +109,7 @@ module.exports = Self => {
case 'departmentFk':
return {'f.departmentFk': value};
case 'onlyWithDestination':
if (!value) return;
return {'f.id': {neq: null}};
return {'f.id': value ? {neq: null} : null};
}
});