mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-04-22 04:39:56 -04:00
feat: send messages in order of oldest to newest
This commit is contained in:
parent
bfc804e18c
commit
0e288fe678
@ -246,6 +246,8 @@ fn query_from_sub(sub: &Subscription) -> String {
|
||||
query.push_str(" WHERE ");
|
||||
query.push_str(&filter_clauses.join(" OR "));
|
||||
}
|
||||
// add order clause
|
||||
query.push_str(" ORDER BY created_at ASC");
|
||||
debug!("query string: {}", query);
|
||||
query
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user