From d9a5868ce422c083be4872ec7f26c62dcd927c4c Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 7 Jul 2023 10:55:45 +0200 Subject: [PATCH] refs #5930 fix(claim_updateClaim) options --- modules/claim/back/methods/claim/updateClaim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/claim/back/methods/claim/updateClaim.js b/modules/claim/back/methods/claim/updateClaim.js index cc7392e39..5486b8eff 100644 --- a/modules/claim/back/methods/claim/updateClaim.js +++ b/modules/claim/back/methods/claim/updateClaim.js @@ -95,7 +95,7 @@ module.exports = Self => { // When claimState has been changed if (args.claimStateFk) { - const newState = await models.ClaimState.findById(args.claimStateFk, null, options); + const newState = await models.ClaimState.findById(args.claimStateFk, null, myOptions); if (newState.hasToNotify) { if (newState.code == 'incomplete') notifyStateChange(ctx, salesPerson.id, claim, newState.code);