changed state to stowaway ticket
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-10-10 09:59:28 +02:00
parent 777baf38a8
commit 9899edffc6
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module.exports = function(Self) {
code: 'BOARDING'
};
let state = await models.State.findOne({where});
let params = {ticketFk: ctx.instance.id, stateFk: state.id};
let params = {ticketFk: ctx.instance.shipFk, stateFk: state.id};
const loopBackContext = LoopBackContext.getCurrentContext();
let httpCtx = {req: loopBackContext.active};