Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
patch category ressources
Browse files Browse the repository at this point in the history
  • Loading branch information
Capryc0rne committed Apr 25, 2024
1 parent 1dab9e5 commit a084d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/Utils/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static function getCategoryDetail($category) {
*/
public static function getCategoryDetailWithRessources($category) {
$categoryData = self::getCategoryData($category);
$ressources = Ressource::where('id_category', $category->id_category)->get();
$ressources = Ressource::where('id_category', $category->id_category )->where('id_status', 1)->get();
$categoryData['ressources'] = $ressources->map(function ($ressource) {
return self::getRessourceDetail($ressource);
});
Expand Down

0 comments on commit a084d04

Please sign in to comment.