Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 2, 2024
1 parent ae9fc31 commit e17d159
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/Http/Controllers/Admin/ContestsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ public function show($id)
->with('user')
->get();


if ($contest->isJudged()) {
$judgeVoteCounts = ContestJudgeVote::whereIn('contest_entry_id', $contest->entries()->pluck('id'))
->groupBy('user_id')
->selectRaw('COUNT(*) as judge_votes_count, user_id')
->get();
}


return ext_view('admin.contests.show', [
'contest' => $contest,
'entries' => json_collection($entries, 'UserContestEntry', ['user']),
Expand Down
1 change: 0 additions & 1 deletion app/Transformers/ContestJudgeScoreTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace App\Transformers;

use App\Models\ContestJudgeScore;
use League\Fractal\Resource\Item;

class ContestJudgeScoreTransformer extends TransformerAbstract
{
Expand Down

0 comments on commit e17d159

Please sign in to comment.