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

View File

@ -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
} }