diff --git a/app/Http/Controllers/SongPlacementController.php b/app/Http/Controllers/SongPlacementController.php index b305e9f..9533e8e 100644 --- a/app/Http/Controllers/SongPlacementController.php +++ b/app/Http/Controllers/SongPlacementController.php @@ -2,14 +2,13 @@ namespace App\Http\Controllers; -use App\Http\Requests\Song\Placement\StoreSongPlacementRequest; +use App\Http\Requests\Songs\Placement\SongPlacementStoreRequest; use App\Models\Ranking; use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; class SongPlacementController extends Controller { - public function store(StoreSongPlacementRequest $request): JsonResponse + public function store(SongPlacementStoreRequest $request): JsonResponse { Ranking::complete(collect($request->songs), $request->rankingId); diff --git a/app/Http/Requests/Songs/Placement/StoreSongPlacementRequest.php b/app/Http/Requests/Songs/Placement/SongPlacementStoreRequest.php similarity index 79% rename from app/Http/Requests/Songs/Placement/StoreSongPlacementRequest.php rename to app/Http/Requests/Songs/Placement/SongPlacementStoreRequest.php index e689106..ffdb53f 100644 --- a/app/Http/Requests/Songs/Placement/StoreSongPlacementRequest.php +++ b/app/Http/Requests/Songs/Placement/SongPlacementStoreRequest.php @@ -1,11 +1,11 @@ markdown('emails.email-blast', [ 'notifiable' => $notifiable - ])->subject("Kyle's Song Rank - V 1.2 available now!"); + ])->subject("Kyle's Song Rank - V 1.3 available now!"); } /** diff --git a/resources/views/emails/email-blast.blade.php b/resources/views/emails/email-blast.blade.php index 210974e..56e1039 100644 --- a/resources/views/emails/email-blast.blade.php +++ b/resources/views/emails/email-blast.blade.php @@ -7,28 +7,11 @@ @endif
- This email is to notify you that Song Rank is now at version 1.2! + This email is to notify you that Song Rank is now at version 1.3!
- In this new version of song rank, I overhauled the entire UI of the - application. Things are going to look familiar and different. I will - continue to make changes over the next few days to fine tune the layouts. - For anyone interested. We switched the application over from using - Twitter Bootstrap to TailwindCSS. -
- -- I've also added user "profiles". You can now view any users' completed - rankings. You can access a profile by clicking on the "creator" on - any ranking on the explore page. Profiles do not have follows, likes or - comments as of now. Feel free to reach out to me if this is something - you would like added, but I don't plan on adding these for now. -
- -- The webring has been moved to the about page. If you would like your website to be added - to the webring, let me know! + Hey everyone, we fixed a major bug on song rank that was not allowing you to save your rankings. it should be fixed now. Sorry for the issue!
diff --git a/resources/views/rank/show.blade.php b/resources/views/rank/show.blade.php index fdd35d6..1d51e6f 100644 --- a/resources/views/rank/show.blade.php +++ b/resources/views/rank/show.blade.php @@ -159,7 +159,7 @@ class="border border-2 border-zinc-800 rounded-lg hover:bg-zinc-100 text-zinc-80 } function save() { - axios.post('/rank/finish', { + axios.post('/song-placement/store', { 'rankingId': {!! $ranking->getKey() !!}, 'songs' : sortedList })