From 0b0fdcde9bba42973029f17ba9c1d3ca79af5b4f Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Wed, 7 Sep 2022 19:03:32 +0400 Subject: [PATCH] Load editions --- api/Controllers/v1/Surah.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Controllers/v1/Surah.php b/api/Controllers/v1/Surah.php index cd82c16..6c4bb19 100644 --- a/api/Controllers/v1/Surah.php +++ b/api/Controllers/v1/Surah.php @@ -50,7 +50,7 @@ public function getByNumber(ServerRequestInterface $request, ResponseInterface $ $result = $this->mc->get(md5('surah_' . $number . '_' . $edition . '_' . $limit . '_' . $offset), function (ItemInterface $item) use ($number, $edition, $limit, $offset) { $item->expiresAfter(604800); - $s = new SuratResponse($this->em, $number, true, $edition, $offset, $limit); + $s = new SuratResponse($this->em, $number, true, $edition, true, $offset, $limit); return [ $s->get(), @@ -76,7 +76,7 @@ public function getOneByNumberAndEdition(ServerRequestInterface $request, Respon $result = $this->mc->get(md5('surah_' . $number . '_' . $edition . '_' . $limit . '_' . $offset), function (ItemInterface $item) use ($number, $edition, $limit, $offset) { $item->expiresAfter(604800); - $s = new SuratResponse($this->em, $number, true, $edition, $offset, $limit); + $s = new SuratResponse($this->em, $number, true, $edition, true, $offset, $limit); return [ $s->get(),