more code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 21:57:48 +00:00
parent 77cdd0ede7
commit 87b45f244b

View File

@ -71,7 +71,7 @@ final class ApiEquipmentAttributeController extends Controller
->with('type') ->with('type')
->where('type/id', $type->id) ->where('type/id', $type->id)
->where('ref', (int) $request->getData('ref')) ->where('ref', (int) $request->getData('ref'))
->execute(); ->executeCount();
if ($attr > 0) { if ($attr > 0) {
$response->header->status = RequestStatusCode::R_409; $response->header->status = RequestStatusCode::R_409;