more code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 21:57:48 +00:00
parent bd64e5cb31
commit 08faa93dd4

View File

@ -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;