Ver código fonte

Remove unused param

Manav Rathi 1 ano atrás
pai
commit
36f9ca2004

+ 0 - 1
web/apps/photos/src/services/download/index.ts

@@ -148,7 +148,6 @@ class DownloadManagerImpl {
             }
             const cacheResp: Response = await this.diskFileCache?.match(
                 file.id.toString(),
-                { sizeInBytes: file.info?.fileSize },
             );
             return cacheResp?.clone();
         } catch (e) {

+ 1 - 4
web/packages/shared/storage/cache.ts

@@ -9,10 +9,7 @@ const cacheNames = [
 export type CacheName = (typeof cacheNames)[number];
 
 export interface LimitedCache {
-    match: (
-        key: string,
-        options?: { sizeInBytes?: number },
-    ) => Promise<Response>;
+    match: (key: string) => Promise<Response>;
     put: (key: string, data: Response) => Promise<void>;
     delete: (key: string) => Promise<boolean>;
 }