1
0
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:
Greg Heartsfield 2021-12-23 21:36:46 -06:00
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
}