Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix old cache migration issue

Abhinavbfc0034ea02e
diff --git a/src/services/diskCache.ts b/src/services/diskCache.ts
index bd3baf7d70..1056ece215 100644
--- a/src/services/diskCache.ts
+++ b/src/services/diskCache.ts
@@ -34,7 +34,7 @@ export class DiskCache implements LimitedCache {
this.cacheBucketDir,
cacheKey
);
- if (existsSync(cachePath)) {
+ if (existsSync(oldCachePath)) {
const match = new Response(await readFile(oldCachePath));
void migrateOldCacheKey(oldCachePath, cachePath, match);
return match;