mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
fix(server): include trashed assets in existing assets list (#4483)
This commit is contained in:
@@ -172,6 +172,7 @@ export class AssetRepository implements IAssetRepository {
|
|||||||
deviceId,
|
deviceId,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
},
|
},
|
||||||
|
withDeleted: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return items.map((asset) => asset.deviceAssetId);
|
return items.map((asset) => asset.deviceAssetId);
|
||||||
@@ -205,6 +206,7 @@ export class AssetRepository implements IAssetRepository {
|
|||||||
deviceId: checkDuplicateAssetDto.deviceId,
|
deviceId: checkDuplicateAssetDto.deviceId,
|
||||||
ownerId,
|
ownerId,
|
||||||
},
|
},
|
||||||
|
withDeleted: true,
|
||||||
});
|
});
|
||||||
return assets.map((asset) => asset.deviceAssetId);
|
return assets.map((asset) => asset.deviceAssetId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user