mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(server): Improve add to multiple albums via bulk checks and inserts (#21052)
* - add addAssetIdsToAlbums to album repo - update albumService to determine all albums and assets with access and coalesce into one set of album_assets to insert * - remove hasAsset check (unnecessary) * - lint * - cleanup * - remove success counts from addAssetsToAlbums results - Fix tests * open-api * await album update
This commit is contained in:
parent
28dce2d0df
commit
3f1e11afcc
7 changed files with 117 additions and 110 deletions
|
|
@ -10007,12 +10007,6 @@
|
|||
},
|
||||
"AlbumsAddAssetsResponseDto": {
|
||||
"properties": {
|
||||
"albumSuccessCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"assetSuccessCount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"error": {
|
||||
"allOf": [
|
||||
{
|
||||
|
|
@ -10025,8 +10019,6 @@
|
|||
}
|
||||
},
|
||||
"required": [
|
||||
"albumSuccessCount",
|
||||
"assetSuccessCount",
|
||||
"success"
|
||||
],
|
||||
"type": "object"
|
||||
|
|
|
|||
|
|
@ -389,8 +389,6 @@ export type AlbumsAddAssetsDto = {
|
|||
assetIds: string[];
|
||||
};
|
||||
export type AlbumsAddAssetsResponseDto = {
|
||||
albumSuccessCount: number;
|
||||
assetSuccessCount: number;
|
||||
error?: BulkIdErrorReason;
|
||||
success: boolean;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue