From b73ba24f3440b81698c9d5c370739d03f958f059 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 31 Dec 2015 19:34:29 +0100 Subject: Fetch all the payments, do the paging only in the UI --- src/server/Controller/Payment.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/Controller') diff --git a/src/server/Controller/Payment.hs b/src/server/Controller/Payment.hs index d233aa2..d2a9258 100644 --- a/src/server/Controller/Payment.hs +++ b/src/server/Controller/Payment.hs @@ -30,10 +30,10 @@ import qualified Model.Json.PaymentId as JP import Model.Message import Model.Message.Key (Key(PaymentNotDeleted)) -getPayments :: Int -> Int -> ActionM () -getPayments page perPage = +getPayments :: ActionM () +getPayments = Secure.loggedAction (\_ -> do - (liftIO $ runDb (P.getPunctualPayments page perPage)) >>= json + (liftIO $ runDb P.getPunctualPayments) >>= json ) getMonthlyPayments :: ActionM () -- cgit v1.2.3