mirror of
https://github.com/immich-app/immich.git
synced 2025-05-30 19:54:52 -04: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
@ -71,8 +71,13 @@ class AssetRepository extends DatabaseRepository implements IAssetRepository {
|
|||||||
Future<List<Asset>> getAllByRemoteId(
|
Future<List<Asset>> getAllByRemoteId(
|
||||||
Iterable<String> ids, {
|
Iterable<String> ids, {
|
||||||
AssetState? state,
|
AssetState? state,
|
||||||
}) =>
|
}) async {
|
||||||
_getAllByRemoteIdImpl(ids, state).findAll();
|
if (ids.isEmpty) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return _getAllByRemoteIdImpl(ids, state).findAll();
|
||||||
|
}
|
||||||
|
|
||||||
QueryBuilder<Asset, Asset, QAfterFilterCondition> _getAllByRemoteIdImpl(
|
QueryBuilder<Asset, Asset, QAfterFilterCondition> _getAllByRemoteIdImpl(
|
||||||
Iterable<String> ids,
|
Iterable<String> ids,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user