mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 22:12:06 +02:00
Fix TwoFAccount controller update method not returning an API resource
This commit is contained in:
parent
1d503ca313
commit
8eae21e4da
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user