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

This commit is contained in:
Valentin Mihai 2023-11-17 13:00:55 +02:00
parent 7dd6dc14a4
commit 46b5306aef

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;