Optimize tests and upgrade Nx workspace (#5884)

* fix issue with async await, use interface over class

* upgrade nx workspace

* remove useless async

* code fixes
This commit is contained in:
Denys Vuika
2020-07-16 22:34:50 +01:00
committed by GitHub
parent b9dc285d2b
commit b69fdb9370
17 changed files with 396 additions and 400 deletions

View File

@@ -45,10 +45,10 @@ export class ProcessCloudService extends BaseCloudService {
if (appName && processInstanceId) {
const url = `${this.getBasePath(appName)}/query/v1/process-instances/${processInstanceId}`;
return this.get(url).pipe(
map((res: any) => {
return this.get<{ entry: ProcessInstanceCloud }>(url).pipe(
map((res) => {
this.dataChangesDetected.next(res.entry);
return new ProcessInstanceCloud(res.entry);
return res.entry;
})
);
} else {
@@ -69,7 +69,7 @@ export class ProcessCloudService extends BaseCloudService {
return this.delete(queryUrl).pipe(
map((res: any) => {
this.dataChangesDetected.next(res.entry);
return new ProcessInstanceCloud(res.entry);
return res.entry;
})
);
} else {