mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-25 12:25:24 +02:00
Set multiple retries with lighter lock & Send 409 in case of deadlock
This commit is contained in:
@@ -107,6 +107,8 @@ class GroupController extends Controller
|
||||
$group->loadCount('twofaccounts');
|
||||
} catch (ModelNotFoundException $exc) {
|
||||
abort(404);
|
||||
} catch (\Throwable $th) {
|
||||
abort(409, 'Conflict');
|
||||
}
|
||||
|
||||
return new GroupResource($group);
|
||||
|
Reference in New Issue
Block a user