fix: sqlite parameters limit

This commit is contained in:
wuzihao051119
2025-07-17 14:11:44 +08:00
parent 184c7390a1
commit 5d99eabe05
6 changed files with 64 additions and 37 deletions
+2 -4
View File
@@ -155,14 +155,12 @@ class ActionService {
}
Future<int> removeFromAlbum(List<String> remoteIds, String albumId) async {
int removedCount = 0;
final result = await _albumApiRepository.removeAssets(albumId, remoteIds);
if (result.removed.isNotEmpty) {
removedCount =
await _remoteAlbumRepository.removeAssets(albumId, result.removed);
await _remoteAlbumRepository.removeAssets(albumId, result.removed);
}
return removedCount;
return result.removed.length;
}
}