Skip to content

Commit

Permalink
Load editions
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Sep 7, 2022
1 parent 4c26977 commit 0b0fdcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/Controllers/v1/Surah.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit 0b0fdcd

Please sign in to comment.