diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index 79f4b3b..4767426 100644 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -71,7 +71,7 @@ final class ApiAttributeController extends Controller ->with('type') ->where('type/id', $type->id) ->where('ref', (int) $request->getData('ref')) - ->execute(); + ->executeCount(); if ($attr > 0) { $response->header->status = RequestStatusCode::R_409;