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:
Alex 2024-09-03 16:04:35 -05:00 committed by GitHub
parent e5667f09c7
commit 6f37ab6a9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 0 deletions

View file

@ -41,6 +41,7 @@ export class TrashService {
const assetPagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (pagination) =>
this.assetRepository.getByUserId(pagination, auth.user.id, {
trashedBefore: DateTime.now().toJSDate(),
withArchived: true,
}),
);