refactor: migrate store userId from int to string

This commit is contained in:
shenlong-tanwen 2025-03-11 23:23:08 +05:30
parent 155a2e83a9
commit 3f7fa90d3b

View File

@ -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);