diff --git a/src/routes/v1/meta_knowledge_graph_v1.ts b/src/routes/v1/meta_knowledge_graph_v1.ts index 204729a..a3e3350 100644 --- a/src/routes/v1/meta_knowledge_graph_v1.ts +++ b/src/routes/v1/meta_knowledge_graph_v1.ts @@ -28,8 +28,8 @@ class MetaKG { const metaKGHandler = new handler(undefined); let metakg = undefined; // initialize MetaKG only if ops are provided because handler logic is built upon that - if (taskInfo.data.options.metakg_ops !== undefined) - metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg_ops); + if (taskInfo.data.options.metakg !== undefined) + metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg); const kg = await metaKGHandler.getKG(metakg); // response.logs = utils.filterForLogLevel(response.logs, options.logLevel); return taskResponse(kg); diff --git a/src/routes/v1/meta_knowledge_graph_v1_by_api.ts b/src/routes/v1/meta_knowledge_graph_v1_by_api.ts index 0e25c13..4f5b5e3 100644 --- a/src/routes/v1/meta_knowledge_graph_v1_by_api.ts +++ b/src/routes/v1/meta_knowledge_graph_v1_by_api.ts @@ -28,8 +28,8 @@ class MetaKGByAPI { const metaKGHandler = new handler(taskInfo.data.smartAPIID, undefined); let metakg = undefined; // initialize MetaKG only if ops are provided because handler logic is built upon that - if (taskInfo.data.options.metakg_ops !== undefined) - metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg_ops); + if (taskInfo.data.options.metakg !== undefined) + metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg); const kg = await metaKGHandler.getKG(metakg); // response.logs = utils.filterForLogLevel(response.logs, options.logLevel); return taskResponse(kg); diff --git a/src/routes/v1/meta_knowledge_graph_v1_by_team.ts b/src/routes/v1/meta_knowledge_graph_v1_by_team.ts index 3d3f90e..a800d75 100644 --- a/src/routes/v1/meta_knowledge_graph_v1_by_team.ts +++ b/src/routes/v1/meta_knowledge_graph_v1_by_team.ts @@ -28,8 +28,8 @@ class MetaKGByTeam { const metaKGHandler = new handler(undefined, taskInfo.data.teamName); let metakg = undefined; // initialize MetaKG only if ops are provided because handler logic is built upon that - if (taskInfo.data.options.metakg_ops !== undefined) - metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg_ops); + if (taskInfo.data.options.metakg !== undefined) + metakg = new MetaKnowledgeGraph(undefined, undefined, taskInfo.data.options.metakg); const kg = await metaKGHandler.getKG(metakg); // response.logs = utils.filterForLogLevel(response.logs, options.logLevel); return taskResponse(kg);