From 7eef0a0769551f23f9bb80cccf21d6e34b6610e9 Mon Sep 17 00:00:00 2001 From: Mickey Nasriachi Date: Wed, 5 Jul 2017 13:29:42 +0100 Subject: [PATCH] Read correct key from output --- lib/MetaCPAN/Web/Controller/Recent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MetaCPAN/Web/Controller/Recent.pm b/lib/MetaCPAN/Web/Controller/Recent.pm index 019be289e9..072379b028 100644 --- a/lib/MetaCPAN/Web/Controller/Recent.pm +++ b/lib/MetaCPAN/Web/Controller/Recent.pm @@ -21,7 +21,7 @@ sub index : Path : Args(0) { { recent => $data->{releases}, took => $data->{took}, - total => $data->{hits}->{total}, + total => $data->{total}, template => 'recent.html', page_size => $page_size, }