From d9bd79d4a1adb06b378e41cb82629914197dc3e7 Mon Sep 17 00:00:00 2001 From: NeuralFlux <40491005+NeuralFlux@users.noreply.github.com> Date: Thu, 7 Nov 2024 16:06:43 -0500 Subject: [PATCH] chore: rename metakg_ops back to original --- src/routes/v1/meta_knowledge_graph_v1.ts | 4 ++-- src/routes/v1/meta_knowledge_graph_v1_by_api.ts | 4 ++-- src/routes/v1/meta_knowledge_graph_v1_by_team.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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);