Remove unnecessary json_encode in oauthcontrollers (#391)

This commit is contained in:
Boy132 2024-06-14 17:17:34 +02:00 committed by GitHub
parent 4f43e9171a
commit 7a6edab79a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class OAuthController extends Controller
$oauth = $request->user()->oauth;
$oauth[$driver] = $oauthUser->getId();
$this->updateService->handle($request->user(), ['oauth' => json_encode($oauth)]);
$this->updateService->handle($request->user(), ['oauth' => $oauth]);
return redirect()->route('account');
}

View File

@ -37,7 +37,7 @@ class OAuthController extends Controller
$oauth = $request->user()->oauth;
unset($oauth[$request->get('driver')]);
$this->updateService->handle($request->user(), ['oauth' => json_encode($oauth)]);
$this->updateService->handle($request->user(), ['oauth' => $oauth]);
return new Response('', Response::HTTP_NO_CONTENT);
}