Skip to content

Commit

Permalink
Send correct status after show hold invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
grunch committed Nov 2, 2023
1 parent 7fadff7 commit 0962599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ pub async fn show_hold_invoice(
.await?;
// We need to publish a new event with the new status
update_order_event(pool, client, my_keys, Status::WaitingPayment, order, None).await?;
let new_order = order.as_new_order();
let mut new_order = order.as_new_order();
new_order.status = Status::WaitingPayment;
// We create a Message to send the hold invoice to seller
let message = Message::new(
0,
Expand Down

0 comments on commit 0962599

Please sign in to comment.