From edf1e80721cb8a26fd9e98ed306137f85f4fc901 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 15 Mar 2024 21:57:48 +0000 Subject: [PATCH] more code fixes --- Controller/ApiAddressAttributeController.php | 2 +- Controller/ApiAttributeController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiAddressAttributeController.php b/Controller/ApiAddressAttributeController.php index f3924b0..db0c9de 100644 --- a/Controller/ApiAddressAttributeController.php +++ b/Controller/ApiAddressAttributeController.php @@ -71,7 +71,7 @@ final class ApiAddressAttributeController 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; diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index deea0b5..58d3083 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;