fix: performance tweak for submitted page
This commit is contained in:
parent
89450f0b79
commit
d5c7e9e4f5
@ -29,6 +29,8 @@ public function index()
|
||||
$user = auth()->user();
|
||||
$artworks = Artwork::whereNotNull('approved_by')
|
||||
->with('artist')
|
||||
->with('podcast')
|
||||
->with('episode')
|
||||
->orderBy('episode_id', 'desc')
|
||||
->orderBy('created_at', 'desc')
|
||||
->paginate($perPage = 52, $columns = ['*'], $pageName = 'artworks');
|
||||
@ -179,8 +181,11 @@ public function destroy(Artwork $artwork)
|
||||
public function approve(Artwork $artwork)
|
||||
{
|
||||
$user = auth()->user();
|
||||
$awatingApproval = Artwork::whereNull('approved_by')->with('podcast')->orderBy('created_at', 'asc')->get();
|
||||
|
||||
$awatingApproval = Artwork::whereNull('approved_by')
|
||||
->with('podcast')
|
||||
->with('podcast.episode')
|
||||
->orderBy('created_at', 'asc')
|
||||
->get();
|
||||
}
|
||||
|
||||
public function legacyArtLink(Request $request, $any = null)
|
||||
|
Loading…
Reference in New Issue
Block a user