Skip to content

Commit

Permalink
Update Channel ID when a channel is being transferred (#2285)
Browse files Browse the repository at this point in the history
* Update Channel ID when a channel is being transferred or re-added after being deleted

* Update app/jobs/create_uphold_channel_card_job.rb

Co-Authored-By: Albert Wang <[email protected]>
  • Loading branch information
Cory McDonald and yachtcaptain23 authored Oct 4, 2019
1 parent 541db42 commit 56b1904
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/create_uphold_channel_card_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def perform(uphold_connection_id:, channel_id:)
upfc.update(
address: get_address(uphold_connection, card_id),
card_id: card_id,
# It's possible a channel can be removed, so this covers re-linking an existing UCFC to the re-added channel.
channel_id: channel_id,
uphold_id: uphold_connection.uphold_id
)
end
Expand Down

0 comments on commit 56b1904

Please sign in to comment.