Fix TwoFAccount controller update method not returning an API resource

This commit is contained in:
Bubka 2021-10-08 13:54:30 +02:00
parent 1d503ca313
commit 8eae21e4da

View File

@ -110,7 +110,9 @@ class TwoFAccountController extends Controller
$this->twofaccountService->update($twofaccount, $validated); $this->twofaccountService->update($twofaccount, $validated);
return response()->json($twofaccount, 200); return (new TwoFAccountReadResource($twofaccount))
->response()
->setStatusCode(200);
} }