mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): addAssets and removeAssets handle duplicate assetIds (#9436)
* fix(server): addAssets and removeAssets handle duplicate assetIds * chore(server): Add e2e tests for duplicate album additions and removals
This commit is contained in:
parent
e479e556bc
commit
6fd6a8ba15
2 changed files with 29 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export const addAssets = async (
|
|||
continue;
|
||||
}
|
||||
|
||||
existingAssetIds.add(assetId);
|
||||
results.push({ id: assetId, success: true });
|
||||
}
|
||||
|
||||
|
|
@ -79,6 +80,7 @@ export const removeAssets = async (
|
|||
continue;
|
||||
}
|
||||
|
||||
existingAssetIds.delete(assetId);
|
||||
results.push({ id: assetId, success: true });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue