refs #6276 fix getItemPackingType
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2023-12-01 13:56:43 +01:00
parent 4690dca4f9
commit 1dfdd94584
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module.exports = Self => {
description: 'Retrieve the operator items',
accessType: 'READ',
returns: {
type: 'string',
type: 'object',
},
http: {
path: `/getItemPackingType`,
@ -23,6 +23,9 @@ module.exports = Self => {
}
});
const itemPackingType = result.itemPackingType();
return itemPackingType?.description;
return {
description: itemPackingType?.description
};
};
};