Skip to content

Commit

Permalink
added todo;
Browse files Browse the repository at this point in the history
cleanup;
error info
  • Loading branch information
Davo00 committed Oct 10, 2023
1 parent 7f62e0e commit 856241b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions workbench/backend/src/app/query/query.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class QueryController {

const coreApiClient = this.factory.fromContext(ctx);
const all_dto_versions = this.factory.ALL_DTO_VERSIONS
delete all_dto_versions["CrowdExecutionRecord"]
delete all_dto_versions["CrowdExecutionRecord"] // TODO remove this line after fsm-sdk has been updated


const dto_names = Object.keys(all_dto_versions) as DTOName[]
Expand All @@ -39,7 +39,7 @@ export class QueryController {
return this.query(ctx, { query: `SELECT it.tag, it.person FROM Skill it WHERE it.tag = '${tag.id}' LIMIT 500` })
.then((resp: QueryResponse<{ it: { person: string } }>) => ({ ...tag, persons: resp.data.map(({ it }) => it.person) }))
.catch(error => {
console.debug(error)
console.error("List of Tags could not be collected due to: ", error)
return { ...tag, persons: [] };
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export class QueryService {

// tslint:disable-next-line:max-line-length
private _query<T_LIST extends QueryResponse<T_ITEM>, T_ITEM extends {}>(query: string): Observable<Observable<T_LIST> extends ObservableInput<infer T> ? T : never> {
// console.debug(query);
return this.auth.globalContextWithAuth$.pipe(
mergeMap(ctx => this.http.post<T_LIST>(`${this.config.getApiUri()}/query`, { query }, { headers: this.getHeaders(ctx) }))
);
Expand Down

0 comments on commit 856241b

Please sign in to comment.