From 7e07f408096e8b6b92f84af9cc10ec33d9fb3e58 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Tue, 21 Jan 2025 18:51:12 +0300 Subject: [PATCH] Update site.ts --- scripts/models/site.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/models/site.ts b/scripts/models/site.ts index 4fd5b33a..fa95165f 100644 --- a/scripts/models/site.ts +++ b/scripts/models/site.ts @@ -14,15 +14,21 @@ type Status = { type SiteProps = { domain: string + totalChannels?: number + markedChannels?: number issues: Collection } export class Site { domain: string + totalChannels: number + markedChannels: number issues: Collection - constructor({ domain, issues }: SiteProps) { + constructor({ domain, totalChannels = 0, markedChannels = 0, issues }: SiteProps) { this.domain = domain + this.totalChannels = totalChannels + this.markedChannels = markedChannels this.issues = issues }