quick fix for updateClaim from other branch
This commit is contained in:
parent
a9beb20469
commit
a679ebfce8
|
@ -53,7 +53,8 @@ module.exports = Self => {
|
||||||
const updatedClaim = await claim.updateAttributes(data);
|
const updatedClaim = await claim.updateAttributes(data);
|
||||||
|
|
||||||
// Get sales person from claim client
|
// 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) {
|
if (salesPerson && changedHasToPickUp && updatedClaim.hasToPickUp) {
|
||||||
const origin = ctx.req.headers.origin;
|
const origin = ctx.req.headers.origin;
|
||||||
const message = $t('Claim will be picked', {
|
const message = $t('Claim will be picked', {
|
||||||
|
|
Loading…
Reference in New Issue