Skip to content

Commit

Permalink
chore: update metakg var name to a more comprehensive one
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuralFlux committed Oct 31, 2024
1 parent 9eabfa1 commit 671e4d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export default class TRAPIQueryHandler {
})}`,
);

if (this.options.metakg) {
const metaKG = new MetaKG(undefined, undefined, (this.options as any).metakg);
if (this.options.metakg_ops) {
const metaKG = new MetaKG(undefined, undefined, (this.options as any).metakg_ops);
metaKG.filterKG(this.options);
return metaKG;
}
Expand Down Expand Up @@ -722,8 +722,12 @@ export default class TRAPIQueryHandler {
return;
}
debug('MetaKG successfully loaded!');

const filteredOps = metaKG.ops.filter(op =>
op.association.qualifiers &&
Object.values(op.association.qualifiers).some(value => Array.isArray(value))
)
span1?.finish();
// metaKG.ops = filteredOps;

if (global.missingAPIs) {
this.logs.push(
Expand Down

0 comments on commit 671e4d4

Please sign in to comment.