Merge branch 'VM/RED-7903' into 'master'

RED-7903 - Show dummy redaction/hints while file is still processing

Closes RED-7903

See merge request redactmanager/red-ui!193
This commit is contained in:
Dan Percic 2023-11-20 08:40:44 +01:00
commit bcd9527696

View File

@ -11,7 +11,8 @@ export class EntityLogService extends GenericService<unknown> {
protected readonly _defaultModelPath = '';
async getEntityLog(dossierId: string, fileId: string) {
const entityLog$ = this._getOne<IEntityLog>([dossierId, fileId], 'entityLog');
const queryParams = [{ key: 'includeUnprocessed', value: true }];
const entityLog$ = this._getOne<IEntityLog>([dossierId, fileId], 'entityLog', queryParams);
const entityLog = await firstValueFrom(entityLog$.pipe(catchError(() => of({} as IEntityLog))));
entityLog.entityLogEntry.sort((a, b) => a.positions[0].pageNumber - b.positions[0].pageNumber);
return entityLog;