From 8e9d0c3e9ab2cb95612dcc418590aa77cc147272 Mon Sep 17 00:00:00 2001 From: zarzet Date: Mon, 19 Jan 2026 23:26:10 +0700 Subject: [PATCH] fix: use path only for JsonCacheInfoRepository JsonCacheInfoRepository assertion requires either path OR databaseName, not both. Using path only to ensure database is stored in persistent directory. --- lib/services/cover_cache_manager.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/cover_cache_manager.dart b/lib/services/cover_cache_manager.dart index ed2e215f..37d2fc3f 100644 --- a/lib/services/cover_cache_manager.dart +++ b/lib/services/cover_cache_manager.dart @@ -51,8 +51,8 @@ class CoverCacheManager { _cacheKey, stalePeriod: _maxCacheAge, maxNrOfCacheObjects: _maxCacheObjects, - // Store database in the same persistent directory - repo: JsonCacheInfoRepository(databaseName: _cacheKey, path: _cachePath), + // Use path only (not databaseName) to store database in persistent directory + repo: JsonCacheInfoRepository(path: _cachePath), fileSystem: IOFileSystem(_cachePath!), fileService: HttpFileService(), ),