mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-09 21:29:06 -05: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_components.join(" AND "));
|
||||||
fc.push_str(" )");
|
fc.push_str(" )");
|
||||||
filter_clauses.push(fc);
|
filter_clauses.push(fc);
|
||||||
|
} else {
|
||||||
|
// if there are no filter clauses, we should return everything
|
||||||
|
filter_clauses.push(" 1=1 ".to_owned());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user