Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mojaloop/#2801): add fulfil timestamp validation and more error handling #916

Merged
merged 24 commits into from
Aug 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add error
  • Loading branch information
kleyow committed Aug 3, 2022
commit 063e5d232c20809037cd81c73db0d036a6bcfbcd
3 changes: 2 additions & 1 deletion src/handlers/bulk/fulfil/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ const bulkFulfil = async (error, messages) => {
*/
const state = await BulkTransferService.bulkFulfil(payload, reasons.toString(), false)
const bulkTransfers = await BulkTransferService.getBulkTransferById(payload.bulkTransferId)
const fspiopError = ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.VALIDATION_ERROR, 'Bulk fulfil failed validation')
for (const individualTransferFulfil of bulkTransfers.payeeBulkTransfer.individualTransferResults) {
individualTransferFulfil.errorInformation = payload.errorInformation
individualTransferFulfil.errorInformation = fspiopError.toApiErrorObject().errorInformation
await sendIndividualTransfer(message, messageId, kafkaTopic, headers, payload, state, params, individualTransferFulfil, histTimerEnd)
}
} catch (err) {
Expand Down