Skip to content

Commit 6bb7278

Browse files
committed
hide broken workshop files from API results
1 parent 347bfff commit 6bb7278

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎controllers/Api/v1/Workshop/WorkshopBrowseApiController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function listLatest(
2121
// TODO: CacheInterface $cache,
2222
){
2323
$workshop_items = [];
24-
$workshop_item_entities = $em->getRepository(WorkshopItem::class)->findBy([], ['creation_orderby_timestamp' => 'DESC'], 10);
24+
$workshop_item_entities = $em->getRepository(WorkshopItem::class)->findBy(['is_last_file_broken' => false], ['creation_orderby_timestamp' => 'DESC'], 10);
2525

2626
if($workshop_item_entities){
2727
/** @var WorkshopItem $entity */

0 commit comments

Comments
 (0)