helpdesk: remove unused UpdateRepository::findById
This commit is contained in:
@@ -37,27 +37,6 @@ class UpdateRepository
|
|||||||
return (int) $result;
|
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
|
public function findByTicketNo(int $tenantId, string $ticketNo): ?array
|
||||||
{
|
{
|
||||||
if ($ticketNo === '') {
|
if ($ticketNo === '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user