mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01:00
fix(server): include trashed assets in existing assets list (#4483)
This commit is contained in:
parent
3d7e9b7184
commit
62cb14e4b6
1 changed files with 2 additions and 0 deletions
|
@ -172,6 +172,7 @@ export class AssetRepository implements IAssetRepository {
|
|||
deviceId,
|
||||
isVisible: true,
|
||||
},
|
||||
withDeleted: true,
|
||||
});
|
||||
|
||||
return items.map((asset) => asset.deviceAssetId);
|
||||
|
@ -205,6 +206,7 @@ export class AssetRepository implements IAssetRepository {
|
|||
deviceId: checkDuplicateAssetDto.deviceId,
|
||||
ownerId,
|
||||
},
|
||||
withDeleted: true,
|
||||
});
|
||||
return assets.map((asset) => asset.deviceAssetId);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue