dev #1731

Merged
jgallego merged 105 commits from dev into test 2023-08-31 09:13:29 +00:00
3 changed files with 6 additions and 3 deletions
Showing only changes of commit fa9dfdf411 - Show all commits

View File

@ -0,0 +1,2 @@
INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
VALUES ('ExpeditionState','addExpeditionState','WRITE','ALLOW','ROLE','delivery');

View File

@ -17,7 +17,7 @@ module.exports = Self => {
}
],
http: {
path: `/updateExpeditionState`,
path: `/addExpeditionState`,
verb: 'post'
}
});
@ -52,10 +52,11 @@ module.exports = Self => {
const typeFk = result[0].id;
const newExpeditionState = await models.Self.create({
const newExpeditionState = models.Self.create({
expeditionFk: expedition.expeditionFk,
typeFk,
});
promises.push(newExpeditionState);
}
await Promise.all(promises);

View File

@ -1,4 +1,4 @@
module.exports = function(Self) {
require('../methods/expedition-state/filter')(Self);
require('../methods/expedition-state/updateExpeditionState')(Self);
require('../methods/expedition-state/addExpeditionState')(Self);
};