From 1212a699f7f338caad0290c6b3d52dc00672f5b3 Mon Sep 17 00:00:00 2001 From: danielhe4rt Date: Mon, 26 Aug 2024 22:47:50 -0300 Subject: [PATCH] fix: payload to update user --- app/Http/Controllers/Api/V1/AuthenticatedUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/V1/AuthenticatedUserController.php b/app/Http/Controllers/Api/V1/AuthenticatedUserController.php index 4084d6e..801f75f 100644 --- a/app/Http/Controllers/Api/V1/AuthenticatedUserController.php +++ b/app/Http/Controllers/Api/V1/AuthenticatedUserController.php @@ -47,7 +47,7 @@ public function putSettings(SettingsRequest $request): JsonResponse ->user() ->refresh(); - $settings = $request->user()->settings()->where(['channel_id', '=', $validatedSettings['channel_id']]) + $settings = $request->user()->settings()->where('channel_id', '=', $validatedSettings['channel_id']) ->with('occupation', 'color', 'effect') ->first();