Skip to content

Commit

Permalink
Adding small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sagoez committed Jul 24, 2024
1 parent cc4107a commit 1ce1f54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions integrationos-api/src/endpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,12 @@ where
);

let store = T::get_store(state.app_stores.clone());
// TODO: Investigate how to improve performance here
let total = store.count(query.filter.clone(), None);
let find = store.get_many(
Some(query.filter),
None,
Some(doc! {
"createdAt": -1
}),
None,
Some(query.limit),
Some(query.skip),
);
Expand Down

0 comments on commit 1ce1f54

Please sign in to comment.