fix(server): asset delete logic (#10077)

* fix(server): asset delete logic

* test: e2e
This commit is contained in:
Jason Rasmussen
2024-06-10 13:04:34 -04:00
committed by GitHub
parent 4698c39855
commit 7651f70c88
10 changed files with 130 additions and 29 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ describe(MetadataService.name, () => {
await sut.handleMetadataExtraction({ id: assetStub.livePhotoWithOriginalFileName.id });
expect(jobMock.queue).toHaveBeenNthCalledWith(1, {
name: JobName.ASSET_DELETION,
data: { id: assetStub.livePhotoWithOriginalFileName.livePhotoVideoId },
data: { id: assetStub.livePhotoWithOriginalFileName.livePhotoVideoId, deleteOnDisk: true },
});
expect(jobMock.queue).toHaveBeenNthCalledWith(2, {
name: JobName.METADATA_EXTRACTION,