From 5c2dfda03f0ce765b4dacd0c39cc8a0602eea917 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 27 Jan 2025 17:50:03 +0600 Subject: update calls of query* and evalfn due to changes in API --- bin/serve.fnl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bin/serve.fnl') diff --git a/bin/serve.fnl b/bin/serve.fnl index fdd553f..b1ec024 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -163,7 +163,7 @@ GROUP BY products.url)" [])) 1 1)) (must - (luna.db.query* + (luna.db.query-assoc db "SELECT products.site, products.title, @@ -322,7 +322,7 @@ {:results (must - (luna.db.query* + (luna.db.query-assoc db (string.format "SELECT products.title, @@ -550,7 +550,8 @@ ;; inline styles so the page loads faster [:style {} [:NO-ESCAPE (fs.read-file "static/style.css")]] - [:link {:rel "icon" :href "https://everytea.ru/static/favicon.png"}] + [:link {:rel "icon" :href "https://everytea.ru/static/favicon.png" + :type "image/png"}] [:link {:rel "preload" :fetchpriority "high" :as "image" :href "/static/logo-hor.svg" :type "image/svg+xml"}] [:link {:rel "canonical" :href canonical-url}] @@ -661,4 +662,4 @@ (must (luna.router.static "GET /static/" "static/")) (when luna.debug - (must (luna.evalfn (fn [code] (fennel.eval code {:env _G}))))) + (must (luna.on-eval (fn [code] (fennel.eval code {:env _G}))))) -- cgit v1.2.3