diff --git a/Sources/App/Commands/Ingest.swift b/Sources/App/Commands/Ingest.swift index 797aca1ff2..c323c4cebd 100644 --- a/Sources/App/Commands/Ingest.swift +++ b/Sources/App/Commands/Ingest.swift @@ -200,7 +200,7 @@ func updateRepository(on database: Database, repository.defaultBranch = repoMetadata.defaultBranch repository.forks = repoMetadata.forkCount - repository.fundingLinks = repoMetadata.fundingLinks + repository.fundingLinks = repoMetadata.fundingLinks ?? [] repository.homepageUrl = repoMetadata.homepageUrl?.trimmed repository.isArchived = repoMetadata.isArchived repository.isInOrganization = repoMetadata.isInOrganization diff --git a/Sources/App/Core/Github.swift b/Sources/App/Core/Github.swift index 3c7c7bfd85..d86f20469c 100644 --- a/Sources/App/Core/Github.swift +++ b/Sources/App/Core/Github.swift @@ -389,7 +389,7 @@ extension Github { var defaultBranchRef: DefaultBranchRef? var description: String? var forkCount: Int - var fundingLinks: [FundingLink] + var fundingLinks: [FundingLink]? var homepageUrl: String? var isArchived: Bool // periphery:ignore