RED-9020 - Use new POST endpoint to hard-delete files

This commit is contained in:
Valentin Mihai 2024-04-19 16:30:53 +03:00
parent b2fd729051
commit 7a23639eaf

View File

@ -16,7 +16,7 @@ export class FileManagementService extends GenericService<unknown> {
delete(files: List<File>, dossierId: string) {
const fileIds = files.map(f => f.id);
return super._post(fileIds, `delete/${dossierId}`).pipe(switchMap(() => this.#filesService.loadAll(dossierId)));
return super._post(fileIds, `delete/hard-delete/${dossierId}`).pipe(switchMap(() => this.#filesService.loadAll(dossierId)));
}
rotatePage(body: IPageRotationRequest, dossierId: string, fileId: string) {