aboutsummaryrefslogtreecommitdiff
path: root/src/server/Controller
diff options
context:
space:
mode:
authorJoris2015-09-06 23:25:44 +0200
committerJoris2015-09-06 23:25:44 +0200
commit53afb9c96904ab226ccee754419569da16c59871 (patch)
tree18c2497275d857f99399595d40a4ccc5a65e396a /src/server/Controller
parent2e75a5ac41afd4d6458ad230bd26fd9e73c7bdb9 (diff)
Setting up the monthly job
Diffstat (limited to 'src/server/Controller')
-rw-r--r--src/server/Controller/Payment.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/Controller/Payment.hs b/src/server/Controller/Payment.hs
index 25d3261..7cbfb37 100644
--- a/src/server/Controller/Payment.hs
+++ b/src/server/Controller/Payment.hs
@@ -37,7 +37,7 @@ getPaymentsAction page perPage =
getMonthlyPaymentsAction :: ActionM ()
getMonthlyPaymentsAction =
Secure.loggedAction (\user -> do
- (liftIO $ runDb (getMonthlyPayments (entityKey user))) >>= json
+ (liftIO $ runDb (getUserMonthlyPayments (entityKey user))) >>= json
)
createPaymentAction :: Text -> Int -> Frequency -> ActionM ()