mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-25 09:15:56 +00: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