diff --git a/contracts/warp-controller/src/query/job.rs b/contracts/warp-controller/src/query/job.rs index c0ef8be..4af58e7 100644 --- a/contracts/warp-controller/src/query/job.rs +++ b/contracts/warp-controller/src/query/job.rs @@ -47,8 +47,9 @@ pub fn query_jobs(deps: Deps, env: Env, data: QueryJobsMsg) -> StdResult, + owner: Addr, job_status: Option, - start_after: Option<(String, u64)>, + start_after: Option, limit: usize, ) -> StdResult { - let start = start_after.map(Bound::inclusive); + let start = start_after.map(Bound::exclusive); let map = if job_status.is_some() && job_status.clone().unwrap() != JobStatus::Pending { FINISHED_JOBS() } else { @@ -164,6 +166,7 @@ pub fn query_jobs_by_owner( let infos = map .idx .owner + .prefix(owner.to_string()) .range(deps.storage, start, None, Order::Ascending) .filter(|h| { resolve_filters(