Update site.ts

This commit is contained in:
freearhey 2025-01-21 18:51:12 +03:00
parent 81f2665235
commit 7e07f40809

View file

@ -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
}