Skip to content

Commit

Permalink
chore: rename metakg_ops back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuralFlux committed Nov 7, 2024
1 parent 7745a7a commit d9bd79d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/routes/v1/meta_knowledge_graph_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/v1/meta_knowledge_graph_v1_by_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/v1/meta_knowledge_graph_v1_by_team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9bd79d

Please sign in to comment.