Skip to content

Commit

Permalink
chore: add limit to the fetching of recommended recipes and videos
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-fajardo committed Nov 13, 2021
1 parent 5d100fb commit 8a308bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Repository/RecipeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function getRecommendedRecipes(): array
->where(AppConstants::STATUS, 1)
->orderBy(AppConstants::ID, AppConstants::DESC)
->orderBy(AppConstants::UPDATED_AT, AppConstants::DESC)
->limit(20)
->get()
);
}
Expand All @@ -52,6 +53,7 @@ public function getRecommendedVideoRecipes(): array
->where(AppConstants::STATUS, 1)
->orderBy(AppConstants::ID, AppConstants::DESC)
->orderBy(AppConstants::UPDATED_AT, AppConstants::DESC)
->limit(6)
->get()
);
}
Expand Down

0 comments on commit 8a308bd

Please sign in to comment.