From 7f6c204322aa13dd8a9760b311955fc4b9a92637 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 13 Oct 2025 23:10:38 +0600 Subject: add simple filtering --- pages/shop/add.fnl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pages/shop/add.fnl') diff --git a/pages/shop/add.fnl b/pages/shop/add.fnl index 01b83d6..460cc81 100644 --- a/pages/shop/add.fnl +++ b/pages/shop/add.fnl @@ -1,6 +1,7 @@ (import-macros {:compile-html HTML} :macros) (local templates (require :templates)) (local dicts (require :dicts)) +(local shop (require :shop)) (local forms (require :forms)) (local lib (require :lib)) @@ -88,7 +89,9 @@ authenticated?))) (do (lib.with-tx db - (fn [tx] (insert-product tx product-form request.form))) + (fn [tx] + (insert-product tx product-form request.form) + (shop.update-search-index tx))) (values 302 {:Location "/shop"} "")))) (values 200 {} (templates.base (content product-form {} {} authenticated?)))))) -- cgit v1.2.3