Skip to content

Commit

Permalink
Fix before/after cursors. (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwu authored May 9, 2023
1 parent 61acd9e commit f25e468
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions das_api/src/api/api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use digital_asset_types::{
SearchAssetsQuery,
},
dapi::{
get_asset, get_assets_by_authority, get_assets_by_group,
get_assets_by_owner, get_proof_for_asset, search_assets, get_assets_by_creator,
get_asset, get_assets_by_authority, get_assets_by_creator, get_assets_by_group,
get_assets_by_owner, get_proof_for_asset, search_assets,
},
rpc::{filter::SearchConditionType, response::GetGroupingResponse},
rpc::{OwnershipModel, RoyaltyModel},
Expand Down Expand Up @@ -148,8 +148,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -179,8 +179,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -212,8 +212,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -242,8 +242,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down Expand Up @@ -333,8 +333,8 @@ impl ApiContract for DasApi {
sort_by,
limit.map(|x| x as u64).unwrap_or(1000),
page.map(|x| x as u64),
before.map(|x| x.as_bytes().to_vec()),
after.map(|x| x.as_bytes().to_vec()),
before.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
after.map(|x| bs58::decode(x).into_vec().unwrap_or_default()),
)
.await
.map_err(Into::into)
Expand Down

0 comments on commit f25e468

Please sign in to comment.