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

Save airtime transfer transaction id as result and on event as external_id #1269

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.

@rowanseymour rowanseymour requested a review from norkans7 June 12, 2024 17:04
@rowanseymour rowanseymour force-pushed the transfer_external_id branch from bdbbac6 to 1180684 Compare June 12, 2024 17:08
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.89%. Comparing base (797a567) to head (1180684).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1269   +/-   ##
=======================================
  Coverage   81.89%   81.89%           
=======================================
  Files         276      276           
  Lines       17445    17447    +2     
=======================================
+ Hits        14286    14288    +2     
  Misses       2588     2588           
  Partials      571      571           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -96,7 +96,7 @@ func (a *TransferAirtimeAction) transfer(run flows.Run, logEvent flows.EventCall
}

func (a *TransferAirtimeAction) saveSuccess(run flows.Run, step flows.Step, transfer *flows.AirtimeTransfer, logEvent flows.EventCallback) {
a.saveResult(run, step, a.ResultName, transfer.ActualAmount.String(), CategorySuccess, "", "", nil, logEvent)
a.saveResult(run, step, a.ResultName, transfer.ExternalID, CategorySuccess, "", "", nil, logEvent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need externalID field added to the DB too so a migrations in rapidpro

@rowanseymour rowanseymour merged commit 543063b into main Jun 12, 2024
7 checks passed
@rowanseymour rowanseymour deleted the transfer_external_id branch June 12, 2024 17:45
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants