diff options
| author | LLLL Colonq <llll@colonq> | 2026-02-24 14:25:57 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-02-24 14:25:57 -0500 |
| commit | 3eae057004597db4d41cdcc3770d5c7e22c50d15 (patch) | |
| tree | 4997306631687de729ebae5cbf71765dc3c1df67 /fig-web/src/Fig/Web/Module/Bells.hs | |
| parent | 91e9ebf92981341668a0a289cf9710546420e993 (diff) | |
Update
Diffstat (limited to 'fig-web/src/Fig/Web/Module/Bells.hs')
| -rw-r--r-- | fig-web/src/Fig/Web/Module/Bells.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fig-web/src/Fig/Web/Module/Bells.hs b/fig-web/src/Fig/Web/Module/Bells.hs index 1ae6dce..f4f8112 100644 --- a/fig-web/src/Fig/Web/Module/Bells.hs +++ b/fig-web/src/Fig/Web/Module/Bells.hs @@ -12,14 +12,14 @@ import qualified Fig.Web.DB as DB public :: PublicModule public a = do onGet "/api/songs" do - DB.hvals a.db "songnames" >>= \case + DB.run a.db (DB.hvals "songnames") >>= \case Nothing -> do status status404 respondText "no sounds found :(" Just songs -> respondText . pretty . SExprList @Void $ SExprString . decodeUtf8 <$> songs onGet "/api/song/:hash" do hash <- pathParam "hash" - DB.hget a.db "songnotes" hash >>= \case + DB.run a.db (DB.hget "songnotes" hash) >>= \case Nothing -> do status status404 respondText "song not found" |
