From ebe6ccb33efd15ded134ae9ca72a640b6aa5469f Mon Sep 17 00:00:00 2001 From: Finn Date: Wed, 6 Sep 2017 17:03:53 +0100 Subject: [PATCH] Fixed page no --- lib/Pear/LocalLoop/Controller/Api/Transactions.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Pear/LocalLoop/Controller/Api/Transactions.pm b/lib/Pear/LocalLoop/Controller/Api/Transactions.pm index 938d696..d205b69 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Transactions.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Transactions.pm @@ -42,6 +42,7 @@ sub post_transaction_list_purchases { return $c->render( json => { success => Mojo::JSON->true, transactions => \@transaction_list, + page_no => $transactions->pager->total_entries, }); }