From 1d56e833a88030b43b92e230a07502adb2b47bdb Mon Sep 17 00:00:00 2001 From: Paul Couture Date: Sat, 6 Jan 2024 15:59:04 +0000 Subject: [PATCH] fix: migrating to bare metal. --- .../RefreshLeaderBoardCacheCommand.php | 38 +++++++++++++++++++ .../Http/Controllers/ArtworkController.php | 3 +- site/resources/views/artworks/card.blade.php | 1 + .../partials/single-artist-card.blade.php | 2 +- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 site/app/Console/Commands/RefreshLeaderBoardCacheCommand.php diff --git a/site/app/Console/Commands/RefreshLeaderBoardCacheCommand.php b/site/app/Console/Commands/RefreshLeaderBoardCacheCommand.php new file mode 100644 index 0000000..48f9e0d --- /dev/null +++ b/site/app/Console/Commands/RefreshLeaderBoardCacheCommand.php @@ -0,0 +1,38 @@ +line('Clearing Leaderboard Caches...'); + cache()->forget('leaderboardTwelveMonths'); + cache()->forget('leaderboardTwelveMonthsLanding'); + cache()->forget('leaderboardAllTime'); + cache()->forget('leaderboardRollingSixMonth'); + cache()->forget('leaderboardNinetyDays'); + } +} diff --git a/site/app/Http/Controllers/ArtworkController.php b/site/app/Http/Controllers/ArtworkController.php index 762df22..09232cb 100644 --- a/site/app/Http/Controllers/ArtworkController.php +++ b/site/app/Http/Controllers/ArtworkController.php @@ -108,7 +108,8 @@ public function store(Request $request): RedirectResponse 'description' => $request->description, 'overlay_id' => null, 'podcast_id' => $podcast->id, - 'episode_id' => $episode->id, + 'episode_id' => $episode->id, + //'approved_by' => 4, 'filename' => $filename, 'created_at' => now(), 'updated_at' => now(), diff --git a/site/resources/views/artworks/card.blade.php b/site/resources/views/artworks/card.blade.php index 8d5f2c6..db3f255 100644 --- a/site/resources/views/artworks/card.blade.php +++ b/site/resources/views/artworks/card.blade.php @@ -10,6 +10,7 @@ alt="{{ $thisArtwork->title }} by {{ $thisArtwork->artist->name }}"> + {{-- End .thumb --}}
diff --git a/site/resources/views/profile/partials/single-artist-card.blade.php b/site/resources/views/profile/partials/single-artist-card.blade.php index 71e9151..f6969b6 100644 --- a/site/resources/views/profile/partials/single-artist-card.blade.php +++ b/site/resources/views/profile/partials/single-artist-card.blade.php @@ -5,7 +5,7 @@
{{ $artist->name }} -

{{ $artist->name }}

+

{{ $artist->name }}

{{ $artist->location ?? 'No Agenda Nation' }}

Artist For {{ $artist->artworks->sortBy('created_at')->first()->created_at->diffForHumans(now(), Carbon\CarbonInterface::DIFF_ABSOLUTE) }}

@if ($artist->bio)