quick fix for updateClaim from other branch

This commit is contained in:
Carlos Jimenez Ruiz 2020-08-14 18:42:45 +02:00
parent a9beb20469
commit a679ebfce8
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ module.exports = Self => {
const updatedClaim = await claim.updateAttributes(data);
// Get sales person from claim client
const salesPerson = claim.client().salesPerson();
const salesPerson = claim.client().salesPersonUser();
console.log('claim.client()', claim.client());
if (salesPerson && changedHasToPickUp && updatedClaim.hasToPickUp) {
const origin = ctx.req.headers.origin;
const message = $t('Claim will be picked', {