Skip to content

Commit

Permalink
remove transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
sunce86 committed Dec 16, 2023
1 parent 19f5bdf commit 02d24e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/autopilot/src/database/orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ impl Postgres {
let order = database::orders::single_full_order(ex, &execution.order_uid)
.await?
.map(full_order_into_model_order)
.transpose()?
.context("order not found")?;
.context("order not found")??;

for execution in executions {
order_executions.push(OrderExecution::new(&order, execution)?);
Expand Down

0 comments on commit 02d24e2

Please sign in to comment.