diff --git a/app/Endpoint/Api/Http/Controllers/DrawLogController.php b/app/Endpoint/Api/Http/Controllers/DrawLogController.php index 577a4686..9ac052f4 100644 --- a/app/Endpoint/Api/Http/Controllers/DrawLogController.php +++ b/app/Endpoint/Api/Http/Controllers/DrawLogController.php @@ -13,6 +13,7 @@ class DrawLogController extends Controller public function index($drawActivityId, Request $request) { $drawLogs = DrawLog::with(['userInfo', 'prize']) + ->whereDoesntHave('prize', fn ($builder) => $builder->where('type', DrawPrizeType::None)) ->where('draw_activity_id', $drawActivityId) ->latest('id') ->simplePaginate($request->input('per_page'));