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
2 changed files with 2 additions and 2 deletions

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);
}