Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Fix event listing
Browse files Browse the repository at this point in the history
  • Loading branch information
0nkery committed Nov 2, 2022
1 parent 0444afc commit 6e08019
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/db/event/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,14 @@ impl<'a> ListQuery<'a> {
}
}

query.fetch_all(conn).await
let raw_objects: Vec<RawObject> = query.fetch_all(conn).await?;
let mut objects = Vec::with_capacity(raw_objects.len());

for raw in raw_objects {
objects.push(Object::try_from(raw)?);
}

Ok(objects)
}
}

Expand Down

0 comments on commit 6e08019

Please sign in to comment.