mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	refactor: migrate store userId from int to string
This commit is contained in:
		
							parent
							
								
									155a2e83a9
								
							
						
					
					
						commit
						3f7fa90d3b
					
				@ -536,7 +536,7 @@ class SyncService {
 | 
				
			|||||||
      );
 | 
					      );
 | 
				
			||||||
    } else if (album.shared) {
 | 
					    } else if (album.shared) {
 | 
				
			||||||
      // delete assets in DB unless they belong to this user or are part of some other shared album or belong to a partner
 | 
					      // delete assets in DB unless they belong to this user or are part of some other shared album or belong to a partner
 | 
				
			||||||
      final userIds = (await _getAllAccessibleUsers()).map((user) => user.id);
 | 
					      final userIds = (await _getAllAccessibleUsers()).map((user) => user.uid);
 | 
				
			||||||
      final orphanedAssets =
 | 
					      final orphanedAssets =
 | 
				
			||||||
          await _assetRepository.getByAlbum(album, notOwnedBy: userIds);
 | 
					          await _assetRepository.getByAlbum(album, notOwnedBy: userIds);
 | 
				
			||||||
      deleteCandidates.addAll(orphanedAssets);
 | 
					      deleteCandidates.addAll(orphanedAssets);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user