refs #6276:mdify back silex→salix
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Sergio De la torre 2024-01-02 12:21:25 +01:00
parent 68ef193a19
commit 365e05d560
2 changed files with 7 additions and 4 deletions

View File

@ -10,3 +10,5 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp
('SaleTracking','mark','WRITE','ALLOW','ROLE','employee'), ('SaleTracking','mark','WRITE','ALLOW','ROLE','employee'),
('ItemBarcode','deleteByItemAndCode','WRITE','ALLOW','ROLE','employee'), ('ItemBarcode','deleteByItemAndCode','WRITE','ALLOW','ROLE','employee'),
('Collection','addItem','WRITE','ALLOW','ROLE','employee'); ('Collection','addItem','WRITE','ALLOW','ROLE','employee');
('ExpeditionPallet', '*', 'READ', 'ALLOW', 'ROLE', 'production');

View File

@ -7,7 +7,7 @@ module.exports = Self => {
verb: 'GET' verb: 'GET'
}, },
returns: { returns: {
type: 'object', type: ['object'],
}, },
}); });
@ -30,10 +30,11 @@ module.exports = Self => {
if (operator) { if (operator) {
const printer = operator.printer(); const printer = operator.printer();
return { console.log({
id: printer.id, id: printer.id,
name: printer.name name: printer.name
}; });
return Array.isArray(printer) ? printer : [printer];
} }
}; };
}; };