From ec2f03e0cf158a5ebb454d3cc52dc9a2399c6150 Mon Sep 17 00:00:00 2001 From: fs Date: Mon, 20 Apr 2026 19:58:51 +0200 Subject: [PATCH] helpdesk: remove unused UpdateRepository::findById --- .../Helpdesk/Repository/UpdateRepository.php | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/modules/helpdesk/lib/Module/Helpdesk/Repository/UpdateRepository.php b/modules/helpdesk/lib/Module/Helpdesk/Repository/UpdateRepository.php index 02c36d8..02c8f4c 100644 --- a/modules/helpdesk/lib/Module/Helpdesk/Repository/UpdateRepository.php +++ b/modules/helpdesk/lib/Module/Helpdesk/Repository/UpdateRepository.php @@ -37,27 +37,6 @@ class UpdateRepository return (int) $result; } - public function findById(int $tenantId, int $id): ?array - { - if ($id <= 0) { - return null; - } - - $row = DB::selectOne( - 'SELECT u.*,' - . ' uc.display_name AS created_by_label, uc.uuid AS created_by_uuid,' - . ' uu.display_name AS updated_by_label, uu.uuid AS updated_by_uuid' - . ' FROM helpdesk_updates u' - . ' LEFT JOIN users uc ON uc.id = u.created_by' - . ' LEFT JOIN users uu ON uu.id = u.updated_by' - . ' WHERE u.id = ? AND u.tenant_id = ? LIMIT 1', - (string) $id, - (string) $tenantId - ); - - return $this->normalizeRow($row); - } - public function findByTicketNo(int $tenantId, string $ticketNo): ?array { if ($ticketNo === '') {