Skip to content

Commit

Permalink
Fix CT payment update repeater logic
Browse files Browse the repository at this point in the history
ISSUE: CS-5378
  • Loading branch information
goran-stamenkovski-logeecom committed Apr 29, 2024
1 parent b384c6a commit c796f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notification/src/handler/notification/notification.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ async function updatePaymentWithRepeater(
)
}

await repeater()

/* eslint-disable-next-line no-await-in-loop */
const response = await ctpClient.fetchById(
ctpClient.builder.payments,
currentPayment.id,
)
currentPayment = response.body // eslint-disable-line prefer-destructuring
currentVersion = currentPayment.version

await repeater()
}
}

Expand Down

0 comments on commit c796f06

Please sign in to comment.