mirror of
https://github.com/immich-app/immich.git
synced 2025-06-24 17:03:11 +02:00
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:
parent
3e03c47fbf
commit
f434e858ed
1 changed files with 7 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue