diff options
Diffstat (limited to 'Handler/UpdateItem.hs')
-rw-r--r-- | Handler/UpdateItem.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Handler/UpdateItem.hs b/Handler/UpdateItem.hs index ce6b30d..ebd29e4 100644 --- a/Handler/UpdateItem.hs +++ b/Handler/UpdateItem.hs | |||
@@ -13,7 +13,7 @@ postUpdateItemR fsUpdateId = do | |||
13 | 13 | ||
14 | case updateResult of | 14 | case updateResult of |
15 | FormSuccess (Item{..} `WithType` t) -> runDB $ do | 15 | FormSuccess (Item{..} `WithType` t) -> runDB $ do |
16 | upsertBy (UniqueKind itemNormKind) (Kind itemNormKind t) [ KindType =. t ] | 16 | void $ upsertBy (UniqueKind itemNormKind) (Kind itemNormKind t) [ KindType =. t ] |
17 | update fsUpdateId [ ItemKind =. itemKind | 17 | update fsUpdateId [ ItemKind =. itemKind |
18 | , ItemNormKind =. itemNormKind | 18 | , ItemNormKind =. itemNormKind |
19 | , ItemBought =. itemBought | 19 | , ItemBought =. itemBought |