diff options
| author | unwox <me@unwox.com> | 2025-10-13 23:10:38 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-13 23:48:17 +0600 |
| commit | 7f6c204322aa13dd8a9760b311955fc4b9a92637 (patch) | |
| tree | 0c1d66d123398dacc0851b1c1589a7e3730761f5 /pages/shop/add.fnl | |
| parent | 5cf21fcb8c91896bb2b889dd4a90cc0b2ef3e9e5 (diff) | |
add simple filtering
Diffstat (limited to 'pages/shop/add.fnl')
| -rw-r--r-- | pages/shop/add.fnl | 5 |
1 files changed, 4 insertions, 1 deletions
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?)))))) |
