From 42a584608329e4e2a060dd14472a237c42fb9a1f 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/ApiAttributeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index de75d1a..f2ce1a5 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;