Skip to content

Commit

Permalink
Merge pull request #207 from holaplex/abdul/update-switch-history-status
Browse files Browse the repository at this point in the history
update switch history status to 'Created' on successful txn
  • Loading branch information
kespinola authored Aug 30, 2023
2 parents 958d2db + 8f35851 commit c74177a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ impl Processor {
if let SwitchCollectionResult::Success(signature) = payload {
let deduction_id = history.credit_deduction_id;
history_am.signature = Set(Some(signature));
history_am.status = Set(CreationStatus::Created);

let mut mint_am: collection_mints::ActiveModel = mint.into();
mint_am.collection_id = Set(history.collection_id);
Expand Down

0 comments on commit c74177a

Please sign in to comment.