mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	remove locked and favorite
This commit is contained in:
		
							parent
							
								
									dc807777d6
								
							
						
					
					
						commit
						7f9bc092ac
					
				@ -17,12 +17,6 @@ class MapFactory {
 | 
			
		||||
 | 
			
		||||
  MapService remote(String ownerId) =>
 | 
			
		||||
      MapService(_mapRepository.remote(ownerId));
 | 
			
		||||
 | 
			
		||||
  MapService favorite(String ownerId) =>
 | 
			
		||||
      MapService(_mapRepository.favorite(ownerId));
 | 
			
		||||
 | 
			
		||||
  MapService locked(String ownerId) =>
 | 
			
		||||
      MapService(_mapRepository.locked(ownerId));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class MapService {
 | 
			
		||||
 | 
			
		||||
@ -20,20 +20,6 @@ class DriftMapRepository extends DriftDatabaseRepository {
 | 
			
		||||
            row.ownerId.equals(ownerId),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  MapQuery favorite(String ownerId) => _mapQueryBuilder(
 | 
			
		||||
        assetFilter: (row) =>
 | 
			
		||||
            row.deletedAt.isNull() &
 | 
			
		||||
            row.isFavorite.equals(true) &
 | 
			
		||||
            row.ownerId.equals(ownerId),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  MapQuery locked(String userId) => _mapQueryBuilder(
 | 
			
		||||
        assetFilter: (row) =>
 | 
			
		||||
            row.deletedAt.isNull() &
 | 
			
		||||
            row.visibility.equalsValue(AssetVisibility.locked) &
 | 
			
		||||
            row.ownerId.equals(userId),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  MapQuery _mapQueryBuilder({
 | 
			
		||||
    Expression<bool> Function($RemoteAssetEntityTable row)? assetFilter,
 | 
			
		||||
    Expression<bool> Function($RemoteExifEntityTable row)? exifFilter,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user