diff options
Diffstat (limited to 'Handler/OpenItem.hs')
-rw-r--r-- | Handler/OpenItem.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Handler/OpenItem.hs b/Handler/OpenItem.hs index 468c6ec..3b1dfeb 100644 --- a/Handler/OpenItem.hs +++ b/Handler/OpenItem.hs | |||
@@ -5,7 +5,7 @@ import Import | |||
5 | postOpenItemR :: ItemId -> Handler TypedContent | 5 | postOpenItemR :: ItemId -> Handler TypedContent |
6 | postOpenItemR itemId = do | 6 | postOpenItemR itemId = do |
7 | today <- utctDay <$> liftIO getCurrentTime | 7 | today <- utctDay <$> liftIO getCurrentTime |
8 | result <- fmap (Entity itemId) . runDB $ updateGet itemId [ ItemOpened =. Just today | 8 | result <- fmap (Entity itemId) . runDB $ updateGet itemId [ ItemOpened =. DateKnown today |
9 | ] | 9 | ] |
10 | selectRep $ do | 10 | selectRep $ do |
11 | provideJson result | 11 | provideJson result |