High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore(mobile): fix store.put type def (#16517)
shenlong7f61ac69836e
diff --git a/mobile/lib/domain/services/store.service.dart b/mobile/lib/domain/services/store.service.dartindex de79e9b71d..70b9f31c00 100644--- a/mobile/lib/domain/services/store.service.dart+++ b/mobile/lib/domain/services/store.service.dart@@ -75,7 +75,7 @@ class StoreService {}/// Asynchronously stores the value in the DB and synchronously in the cache- Future<void> put<T>(StoreKey<T> key, T value) async {+ Future<void> put<U extends StoreKey<T>, T>(U key, T value) async {if (_cache[key.id] == value) return;await _storeRepository.insert(key, value);_cache[key.id] = value;