mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
fix(server): empty trash for archived assets (#12281)
* fix(server): empty trash for archived assets * use withArchived * add e2e test
This commit is contained in:
parent
e5667f09c7
commit
6f37ab6a9e
3 changed files with 22 additions and 0 deletions
e2e/src
|
@ -30,6 +30,7 @@ import {
|
|||
signUpAdmin,
|
||||
updateAdminOnboarding,
|
||||
updateAlbumUser,
|
||||
updateAssets,
|
||||
updateConfig,
|
||||
validate,
|
||||
} from '@immich/sdk';
|
||||
|
@ -389,6 +390,9 @@ export const utils = {
|
|||
return searchMetadata({ metadataSearchDto: dto }, { headers: asBearerAuth(accessToken) });
|
||||
},
|
||||
|
||||
archiveAssets: (accessToken: string, ids: string[]) =>
|
||||
updateAssets({ assetBulkUpdateDto: { ids, isArchived: true } }, { headers: asBearerAuth(accessToken) }),
|
||||
|
||||
deleteAssets: (accessToken: string, ids: string[]) =>
|
||||
deleteAssets({ assetBulkDeleteDto: { ids } }, { headers: asBearerAuth(accessToken) }),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue