fix: add % to LIKE query for search
This commit is contained in:
parent
89b2b598f4
commit
253d757d9a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ pub async fn search(
|
||||||
}
|
}
|
||||||
|
|
||||||
filter = Condition::all()
|
filter = Condition::all()
|
||||||
.add(upub::model::object::Column::Content.like(page.q))
|
.add(upub::model::object::Column::Content.like(format!("%{}%", page.q)))
|
||||||
.add(filter);
|
.add(filter);
|
||||||
|
|
||||||
// TODO lmao rethink this all
|
// TODO lmao rethink this all
|
||||||
|
|
Loading…
Reference in a new issue