diff --git a/app/Http/Controllers/RankingController.php b/app/Http/Controllers/RankingController.php index 4ddb46d..ad82397 100644 --- a/app/Http/Controllers/RankingController.php +++ b/app/Http/Controllers/RankingController.php @@ -65,7 +65,7 @@ public function update(UpdateRankingRequest $request, $id): JsonResponse session()->flash('success', 'Ranking was succesfully updated!'); return response()->json([ - 'redirect' => route('profile.show', ['id' => $ranking->getKey()]), + 'redirect' => route('profile.show', ['id' => auth()->user()->spotify_id]), ], 200); }