Skip to content

Commit

Permalink
Update digital_asset_types/src/dao/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tahsin Tunan <tahsintunan@gmail.com>
  • Loading branch information
callensm and tahsintunan authored Oct 16, 2023
1 parent 0eae523 commit 84e5dd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion digital_asset_types/src/dao/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ impl SearchAssetsQuery {
)
})?;

let cond = Condition::all().add(asset_data::Column::RawName.like(name_as_str));
let name_expr = SimpleExpr::Custom(format!("chain_data->>'name' LIKE '%{}%'", name_as_str).into());
conditions = conditions.add(name_expr);
conditions = conditions.add(cond);
let rel = asset_data::Relation::Asset
.def()
Expand Down

0 comments on commit 84e5dd7

Please sign in to comment.