diff --git a/Controller/ApiAssetAttributeController.php b/Controller/ApiAssetAttributeController.php index 18e3d23..1b1adcd 100644 --- a/Controller/ApiAssetAttributeController.php +++ b/Controller/ApiAssetAttributeController.php @@ -71,7 +71,7 @@ final class ApiAssetAttributeController 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;