Skip to content

Commit

Permalink
Support for switching queries on and off.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusoe committed Aug 31, 2020
1 parent ca24283 commit 95373f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default class SensuDatasource {
*/
query(queryOptions) {
const queryTargets = _(queryOptions.targets)
.filter(target => !target.hide)
.map(ConfigMigration.migrate)
.map(target => this.prepareQuery(target, queryOptions))
.value();
Expand Down

0 comments on commit 95373f2

Please sign in to comment.