RED-4654: Fixed under review bulk action.

This commit is contained in:
Nicoleta Panaghiu 2022-07-29 15:56:02 +03:00
parent 117db2bd89
commit 57b035c86f

View File

@ -82,6 +82,9 @@ export class BulkActionsService {
async backToUnderReview(files: File[]): Promise<void> {
this._loadingService.start();
if (files.filter(file => file.workflowStatus === 'NEW').length === files.length) {
await this._fileAssignService.assignToMe(files);
}
await firstValueFrom(this._filesService.setUnderReviewFor(files, files[0].dossierId));
this._loadingService.stop();
}