mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	* refactor: device asset entity to use modified time * chore: cleanup * refactor: remove album media dependency from hashservice * refactor: return updated copy of asset * add hash service tests * chore: rename hash batch constants * chore: log the number of assets processed during migration * chore: more logs * refactor: use lookup and more tests * use sort approach * refactor hash service to use for loop instead * refactor: rename to getByIds --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			406 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			406 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'dart:async';
 | |
| 
 | |
| import 'package:immich_mobile/domain/interfaces/db.interface.dart';
 | |
| import 'package:immich_mobile/domain/models/device_asset.model.dart';
 | |
| 
 | |
| abstract interface class IDeviceAssetRepository implements IDatabaseRepository {
 | |
|   Future<bool> updateAll(List<DeviceAsset> assetHash);
 | |
| 
 | |
|   Future<List<DeviceAsset>> getByIds(List<String> localIds);
 | |
| 
 | |
|   Future<void> deleteIds(List<String> ids);
 | |
| }
 |