From c24fce08f35113e1921e0eb9ee1807e3d980afac Mon Sep 17 00:00:00 2001 From: KKlochko Date: Thu, 11 Apr 2024 12:49:46 +0300 Subject: [PATCH] Update the queries to get articles in the order new first. --- src/main/blog/db.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/blog/db.cljs b/src/main/blog/db.cljs index 48e28e6..dc55aa6 100644 --- a/src/main/blog/db.cljs +++ b/src/main/blog/db.cljs @@ -26,7 +26,7 @@ [client channel] (go (try - (let [res (! channel (.-rows res))) (catch js/Error err (js/console.log (ex-cause err))))) channel) @@ -37,10 +37,11 @@ (go (try (let [res (! channel (.-rows res))) (catch js/Error err (js/console.log (ex-cause err))))) channel)