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/#3984): parameterize switch id #1057

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
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: merge and resolve conflicts
  • Loading branch information
oderayi committed Jun 24, 2024
commit 542e2e83a159876803ac3011a7bd88840895c5c9
2 changes: 1 addition & 1 deletion src/handlers/positions/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const positions = async (error, messages) => {
transferStateId,
reason: transferInfo.reason
}
await PositionService.changeParticipantPosition(transferInfo.participantCurrencyId, isReversal, transferInfo.amount, transferStateChange)
await PositionService.changeParticipantPosition(participantCurrency.participantCurrencyId, isReversal, transferInfo.amount, transferStateChange)
await Kafka.proceed(Config.KAFKA_CONFIG, params, { consumerCommit, eventDetail, hubName: Config.HUB_NAME })
histTimerEnd({ success: true, fspId: Config.INSTRUMENTATION_METRICS_LABELS.fspId, action })
return true
Expand Down
17 changes: 4 additions & 13 deletions src/handlers/transfers/FxFulfilService.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,15 +416,8 @@ class FxFulfilService {
}

async processFxFulfil({ transfer, payload, action }) {
await this.FxTransferModel.fxTransfer.saveFxFulfilResponse(
transfer.commitRequestId,
payload,
action
)
const cyrilOutput = await this.cyril.processFxFulfilMessage(
transfer.commitRequestId,
payload
)
await this.FxTransferModel.fxTransfer.saveFxFulfilResponse(transfer.commitRequestId, payload, action)
await this.cyril.processFxFulfilMessage(transfer.commitRequestId)
const eventDetail = {
functionality: Type.POSITION,
action
Expand All @@ -434,10 +427,8 @@ class FxFulfilService {
await this.kafkaProceed({
consumerCommit,
eventDetail,
messageKey:
cyrilOutput.counterPartyFspSourceParticipantCurrencyId.toString(),
topicNameOverride:
this.Config.KAFKA_CONFIG.EVENT_TYPE_ACTION_TOPIC_MAP?.POSITION?.COMMIT
messageKey: transfer.counterPartyFspSourceParticipantCurrencyId.toString(),
topicNameOverride: this.Config.KAFKA_CONFIG.EVENT_TYPE_ACTION_TOPIC_MAP?.POSITION?.COMMIT
})
return true
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.