Skip to content

Commit

Permalink
change start bound in owner query
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Jan 12, 2024
1 parent f06969b commit 7a14125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/warp-controller/src/query/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub fn query_jobs_by_owner(
start_after: Option<(String, u64)>,
limit: usize,
) -> StdResult<JobsResponse> {
let start = start_after.map(Bound::exclusive);
let start = start_after.map(Bound::inclusive);
let map = if job_status.is_some() && job_status.clone().unwrap() != JobStatus::Pending {
FINISHED_JOBS()
} else {
Expand All @@ -164,7 +164,7 @@ pub fn query_jobs_by_owner(
let infos = map
.idx
.owner
.range(deps.storage, None, start, Order::Descending)
.range(deps.storage, start, None, Order::Ascending)
.filter(|h| {
resolve_filters(
deps,
Expand Down

0 comments on commit 7a14125

Please sign in to comment.