Skip to content

Commit

Permalink
fix: 修正file storage文件校验
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Mar 2, 2024
1 parent 57efe34 commit 003c06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/file.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class FileStorage implements IStorage {
return Bluebird.filter(
files,
async (file) => {
const st = await stat(join(this.cacheDir, file.path)).catch(() => null)
const st = await stat(join(this.cacheDir, hashToFilename(file.hash))).catch(() => null)
return st?.size !== file.size
},
{
Expand Down

0 comments on commit 003c06f

Please sign in to comment.