fix(mobile): getAllByRemoteId return all assets on empty arguments value (#17263)

* chore: post release tasks

* fix(mobile): getAllByRemoteId return all assets if ids is empty
This commit is contained in:
Alex 2025-04-01 08:59:21 -05:00 committed by GitHub
parent 3e03c47fbf
commit f434e858ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,8 +71,13 @@ class AssetRepository extends DatabaseRepository implements IAssetRepository {
Future<List<Asset>> getAllByRemoteId(
Iterable<String> ids, {
AssetState? state,
}) =>
_getAllByRemoteIdImpl(ids, state).findAll();
}) async {
if (ids.isEmpty) {
return [];
}
return _getAllByRemoteIdImpl(ids, state).findAll();
}
QueryBuilder<Asset, Asset, QAfterFilterCondition> _getAllByRemoteIdImpl(
Iterable<String> ids,