Set multiple retries with lighter lock & Send 409 in case of deadlock

This commit is contained in:
Bubka
2025-02-24 15:13:13 +01:00
parent 19f3a71c03
commit c8b5bd32a6
2 changed files with 4 additions and 2 deletions

View File

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