From e39882c1be6c239bb6884f2518d142fd7aae4ffe Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:14:46 +0300 Subject: [PATCH] Update site.ts --- scripts/models/site.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/models/site.ts b/scripts/models/site.ts index 27d9d1efc..31e901cda 100644 --- a/scripts/models/site.ts +++ b/scripts/models/site.ts @@ -1,5 +1,5 @@ import { Collection } from '@freearhey/core' -import { Issue } from './' +import { Channel, Issue } from './' enum StatusCode { DOWN = 'down', @@ -14,21 +14,18 @@ export interface Status { export interface SiteData { domain: string - totalChannels?: number - markedChannels?: number + channels?: Collection issues: Collection } export class Site { domain: string - totalChannels: number - markedChannels: number + channels: Collection issues: Collection constructor(data: SiteData) { this.domain = data.domain - this.totalChannels = data.totalChannels || 0 - this.markedChannels = data.markedChannels || 0 + this.channels = new Collection() this.issues = data.issues }