Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: creators sql #38

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion digital_asset_types/src/dao/scopes/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub async fn get_by_creator(
pagination: &Pagination,
limit: u64,
) -> Result<Vec<FullAsset>, DbErr> {
let mut condition = "SELECT asc_pubkey FROM assets_v3 LEFT JOIN asset_creators_v3 ON ast_pubkey = asc_pubkey WHERE asc_creator = $1".to_string();
let mut condition = "SELECT ast_pubkey FROM assets_v3 LEFT JOIN asset_creators_v3 ON ast_pubkey = asc_pubkey WHERE asc_creator = $1".to_string();
if only_verified {
condition = format!("{} AND asc_verified = true", condition);
}
Expand Down
12 changes: 0 additions & 12 deletions digital_asset_types/src/dapi/change_logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ struct SimpleChangeLog {
cli_tree: Vec<u8>,
}

#[derive(FromQueryResult, Debug, Default, Clone, Eq, PartialEq)]
struct LeafWithAssetID {
ast_pubkey: Vec<u8>,
cli_tree: Vec<u8>,
cli_node_idx: i64,
cli_seq: i64,
cli_level: i64,
cli_hash: Vec<u8>,
}

pub async fn get_proof_for_assets(
rocks_db: Arc<Storage>,
asset_ids: Vec<Pubkey>,
Expand All @@ -43,8 +33,6 @@ pub async fn get_proof_for_assets(

let tree_ids = fetch_asset_data!(rocks_db, asset_leaf_data, asset_ids)
.values()
.collect::<Vec<_>>()
.into_iter()
.map(|asset| {
(
asset.tree_id,
Expand Down
Loading