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 === '') {