diff options
author | Joris | 2015-09-04 23:13:48 +0200 |
---|---|---|
committer | Joris | 2015-09-04 23:13:48 +0200 |
commit | c876fd8c2f1aac2c3fe10c2b7de734f3ef71b71f (patch) | |
tree | 23ff6a85ee81a0cc8419b7c1acbec0a33bd02fab /src/server/Controller | |
parent | c1f44a5890fbb26faf6f17c676662ea1bd495f2e (diff) |
Paging model works with both payments addition and deletion
Diffstat (limited to 'src/server/Controller')
-rw-r--r-- | src/server/Controller/Payment.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Controller/Payment.hs b/src/server/Controller/Payment.hs index 271d970..b3fe07a 100644 --- a/src/server/Controller/Payment.hs +++ b/src/server/Controller/Payment.hs @@ -35,8 +35,8 @@ getPaymentsAction page perPage = createPaymentAction :: Text -> Int -> ActionM () createPaymentAction name cost = Secure.loggedAction (\user -> do - paymentKey <- liftIO . runDb $ createPayment (entityKey user) name cost - json . Message . paymentKeyToText $ paymentKey + _ <- liftIO . runDb $ createPayment (entityKey user) name cost + ok200 ) deletePaymentAction :: Text -> ActionM () |