RED-7903 - Show dummy redaction/hints while file is still processing
This commit is contained in:
parent
7dd6dc14a4
commit
46b5306aef
@ -11,7 +11,8 @@ export class EntityLogService extends GenericService<unknown> {
|
|||||||
protected readonly _defaultModelPath = '';
|
protected readonly _defaultModelPath = '';
|
||||||
|
|
||||||
async getEntityLog(dossierId: string, fileId: string) {
|
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))));
|
const entityLog = await firstValueFrom(entityLog$.pipe(catchError(() => of({} as IEntityLog))));
|
||||||
entityLog.entityLogEntry.sort((a, b) => a.positions[0].pageNumber - b.positions[0].pageNumber);
|
entityLog.entityLogEntry.sort((a, b) => a.positions[0].pageNumber - b.positions[0].pageNumber);
|
||||||
return entityLog;
|
return entityLog;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user