Skip to content

Commit 61ab8a0

Browse files
committed
fix: use timestamp to get latest data
1 parent 2f189d9 commit 61ab8a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/OIerDb.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export const initDb = async (setProgressPercent?: (p: number) => void) => {
378378
sha512: staticSha512,
379379
size: staticSize,
380380
}: { sha512: string; size: number } = await promiseAny(
381-
infoUrls.map((url) => fetch(`${url}/static.info.json`))
381+
infoUrls.map((url) => fetch(`${url}/static.info.json?_=${+new Date()}`))
382382
).then((res) => res.json());
383383

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

393393
setProgressPercent(8);

0 commit comments

Comments
 (0)