mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-09 21:29:06 -05: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(" WHERE ");
|
||||||
query.push_str(&filter_clauses.join(" OR "));
|
query.push_str(&filter_clauses.join(" OR "));
|
||||||
}
|
}
|
||||||
|
// add order clause
|
||||||
|
query.push_str(" ORDER BY created_at ASC");
|
||||||
debug!("query string: {}", query);
|
debug!("query string: {}", query);
|
||||||
query
|
query
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user