diff options
Diffstat (limited to 'fig-web')
| -rw-r--r-- | fig-web/src/Fig/Web/Module/TCG.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fig-web/src/Fig/Web/Module/TCG.hs b/fig-web/src/Fig/Web/Module/TCG.hs index c322df5..da3504b 100644 --- a/fig-web/src/Fig/Web/Module/TCG.hs +++ b/fig-web/src/Fig/Web/Module/TCG.hs @@ -31,8 +31,10 @@ public a = do status status404 respondText "card does not exist" Just image -> do + liftIO $ Dir.createDirectoryIfMissing True cardDir log $ "Deleting card from Redis: " <> uuid liftIO $ BS.writeFile cardPath image + log $ "Deleting card from Redis: " <> uuid DB.hdel a.db "tcg:cards" $ encodeUtf8 uuid addHeader "Content-Type" "image/png" respondBytes image |
