From 0e288fe678df4dd919be8782341c0c3d28a41240 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Thu, 23 Dec 2021 21:36:46 -0600 Subject: [PATCH] feat: send messages in order of oldest to newest --- src/db.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db.rs b/src/db.rs index 9288daf..67d0b36 100644 --- a/src/db.rs +++ b/src/db.rs @@ -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 }