mirror of
https://github.com/immich-app/immich.git
synced 2025-06-06 15:14:34 -04:00
refactor: migrate store userId from int to string
This commit is contained in:
parent
24d9dac0e6
commit
c96406737a
@ -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