From 3eae057004597db4d41cdcc3770d5c7e22c50d15 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 24 Feb 2026 14:25:57 -0500 Subject: Update --- fig-web/src/Fig/Web/Module/Gizmo.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fig-web/src/Fig/Web/Module/Gizmo.hs') diff --git a/fig-web/src/Fig/Web/Module/Gizmo.hs b/fig-web/src/Fig/Web/Module/Gizmo.hs index bca23d5..70078fb 100644 --- a/fig-web/src/Fig/Web/Module/Gizmo.hs +++ b/fig-web/src/Fig/Web/Module/Gizmo.hs @@ -20,13 +20,13 @@ public :: PublicModule public a = do onGet "/api/gizmo" do buf <- queryParam "buf" - DB.hget a.db "gizmos" buf >>= \case + DB.run a.db (DB.hget "gizmos" buf) >>= \case Nothing -> do status status404 respondText "gizmo does not exist" Just html -> respondHTMLText $ decodeUtf8 html onGet "/api/gizmo/list" do - gizmos <- maybe [] (fmap decodeUtf8) <$> DB.hkeys a.db "gizmos" + gizmos <- maybe [] (fmap decodeUtf8) <$> DB.run a.db (DB.hkeys "gizmos") respondText $ Text.unlines gizmos publicWebsockets :: PublicWebsockets -- cgit v1.2.3