Skip to content

Commit

Permalink
fix: init with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Jan 17, 2024
1 parent 76f429d commit e74de65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/src/app/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "@/components/ui/table"
import { kv } from "@/lib/storage"
import { cn } from "@/lib/utils"
import { DependentInfo, getDependents, ParseResult } from "izon"
import { getDependents, ParseResult } from "izon"
import { Suspense } from "react"

const cachePrefix = "dependents-"
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export async function getDependents(
category ? `?dependent_type=${category.toUpperCase()}` : ""
}`,
total: {
repositories: 0,
packages: 0,
repositories: hasCache ? progressCache.total.repositories : 0,
packages: hasCache ? progressCache.total.packages : 0,
},
}

Expand Down

0 comments on commit e74de65

Please sign in to comment.