Skip to content

Commit

Permalink
fix for printing created at field from nostr event in prettytable of …
Browse files Browse the repository at this point in the history
…listorders
  • Loading branch information
Lucio Pinese committed Jan 25, 2024
1 parent 1ed4a0a commit 95595fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ pub async fn get_orders_list(
error!("{order:?}");
continue;
}
let order = order?;
let mut order = order?;

info!("Found Order id : {:?}", order.id.unwrap());

Expand Down Expand Up @@ -346,6 +346,9 @@ pub async fn get_orders_list(
continue;
}

// Get created at field from Nostr event
order.created_at = Some(ord.created_at.as_i64());

id_list.push(order.id.unwrap());
orders_list.push(order);
}
Expand Down

0 comments on commit 95595fb

Please sign in to comment.