fix until filters

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-12 20:29:41 -07:00
parent f0d56da4f5
commit 483e8e85d6
3 changed files with 7 additions and 3 deletions

View File

@@ -33,6 +33,10 @@ pub fn convert_enostr_filter(filter: &enostr::Filter) -> nostrdb::Filter {
nfilter.since(since);
}
if let Some(until) = filter.until {
nfilter.until(until);
}
if let Some(limit) = filter.limit {
nfilter.limit(limit.into());
}