implement filters for search (#596)

closes #596

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-26 22:22:10 +00:00
parent 21a67513f2
commit d281b8d3ae

View file

@ -113,6 +113,7 @@ pub async fn search_pdus<'a>(
.ok()
})
.ready_filter(|pdu| !pdu.is_redacted())
.ready_filter(|pdu| pdu.matches(&query.criteria.filter))
.filter_map(move |pdu| async move {
self.services
.state_accessor