Skip to content

Commit

Permalink
Fix operator error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Jul 22, 2024
1 parent 0ccae10 commit aa97cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/repo/query_builder/fragment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const _ = require('lodash');
const { RecordID: RID } = require('orientjs');

const { ValidationError, schema, util } = require('@bcgsc-pori/graphkb-schema');
Expand Down Expand Up @@ -180,7 +181,7 @@ class Comparison {
`Invalid operator (${
operator
}). Must be one of (${
Object.values(OPERATORS).join(', ')
Object.values(_.omit(OPERATORS, ['AND', 'OR'])).join(', ')
})`,
);
}
Expand Down

0 comments on commit aa97cbd

Please sign in to comment.