Skip to content

Commit

Permalink
fix: typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed May 18, 2024
1 parent ec163e6 commit 5740020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/packages_fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class PackagesFetcher {
* Merge raw package .yml data with the stats fetched from npm/github stored
* on our database
*/
#mergePackageStatsAndInfo(pkg: PackageInfo, stats: PackageStats | undefined) {
#mergePackageStatsAndInfo(pkg: PackageInfo, stats: PackageStats) {
return {
...pkg,
firstReleaseAt: stats?.firstReleaseAt?.toISODate() || undefined,
Expand Down Expand Up @@ -132,7 +132,7 @@ export class PackagesFetcher {
const stats = await PackageStats.all()
let packages = [...this.packagesList].map((pkg) => {
const info = stats.find((info) => info.packageName === pkg.name)
return this.#mergePackageStatsAndInfo(pkg, info)
return this.#mergePackageStatsAndInfo(pkg, info!)
})

/**
Expand Down

0 comments on commit 5740020

Please sign in to comment.