mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-04-22 20:59:55 -04:00
fix: handle filters with no criteria
This commit is contained in:
parent
b3c7852b19
commit
850064b871
@ -245,6 +245,9 @@ fn query_from_sub(sub: &Subscription) -> String {
|
||||
fc.push_str(&filter_components.join(" AND "));
|
||||
fc.push_str(" )");
|
||||
filter_clauses.push(fc);
|
||||
} else {
|
||||
// if there are no filter clauses, we should return everything
|
||||
filter_clauses.push(" 1=1 ".to_owned());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user