Skip to content

Commit

Permalink
fix: use timestamp to get latest data
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Feb 5, 2024
1 parent 2f189d9 commit 61ab8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/OIerDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export const initDb = async (setProgressPercent?: (p: number) => void) => {
sha512: staticSha512,
size: staticSize,
}: { sha512: string; size: number } = await promiseAny(
infoUrls.map((url) => fetch(`${url}/static.info.json`))
infoUrls.map((url) => fetch(`${url}/static.info.json?_=${+new Date()}`))
).then((res) => res.json());

setProgressPercent(4);
Expand All @@ -387,7 +387,7 @@ export const initDb = async (setProgressPercent?: (p: number) => void) => {
sha512: resultSha512,
size: resultSize,
}: { sha512: string; size: number } = await promiseAny(
infoUrls.map((url) => fetch(`${url}/result.info.json`))
infoUrls.map((url) => fetch(`${url}/result.info.json?_=${+new Date()}`))
).then((res) => res.json());

setProgressPercent(8);
Expand Down

0 comments on commit 61ab8a0

Please sign in to comment.