1
0
Fork 0
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:
shenlong 2023-10-16 13:47:17 +00:00 committed by GitHub
parent 3d7e9b7184
commit 62cb14e4b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}