hotfix claimStateLanguage #2242

Merged
jcasado merged 2 commits from hotfix_languageClaimNotification into master 2024-04-03 11:39:38 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 09f023090e - Show all commits

View File

@ -96,9 +96,9 @@ module.exports = Self => {
// When claimState has been changed
if (args.claimStateFk) {
const newState = await models.ClaimState.findById(args.claimStateFk, null, myOptions);
await notifyStateChange(ctx, salesPerson.id, claim, newState.code);
await notifyStateChange(ctx, salesPerson.id, claim, newState.description);
if (newState.code == 'canceled')
await notifyStateChange(ctx, claim.workerFk, claim, newState.code);
await notifyStateChange(ctx, claim.workerFk, claim, newState.description);
}
if (tx) await tx.commit();