Skip to content

Commit

Permalink
Fix exclude_usage logic
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Sep 16, 2020
1 parent 5ed2ab2 commit 045f69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/usage_collection/server/routes/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function registerStatsRoute({
async (context, req, res) => {
const isExtended = req.query.extended === '' || req.query.extended;
const isLegacy = req.query.legacy === '' || req.query.legacy;
const shouldGetUsage = req.query.exclude_usage === undefined || !req.query.exclude_usage;
const shouldGetUsage = req.query.exclude_usage === false;

let extended;
if (isExtended) {
Expand Down

0 comments on commit 045f69a

Please sign in to comment.