mirror of
https://github.com/immich-app/immich.git
synced 2025-06-27 21:40:03 +02:00
chore(mobile): fix store.put type def (#16517)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
4db8f0c666
commit
7f61ac6983
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue