fix: asset update race condition

This commit is contained in:
Daniel Dietzler
2025-03-16 13:17:55 +01:00
parent 9a4495eb5b
commit 75d1d21cc6
13 changed files with 172 additions and 114 deletions
@@ -123,7 +123,7 @@ describe(MetadataService.name, () => {
process.env.TZ = serverTimeZone ?? undefined;
const { filePath } = await createTestFile(exifData);
mocks.asset.getByIds.mockResolvedValue([{ id: 'asset-1', originalPath: filePath } as AssetEntity]);
mocks.asset.getById.mockResolvedValue({ id: 'asset-1', originalPath: filePath } as AssetEntity);
await sut.handleMetadataExtraction({ id: 'asset-1' });