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

This commit is contained in:
Valentin Mihai 2024-04-19 16:37:50 +03:00
parent 907245149a
commit 392ac7c4b1

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) {