Skip to content

Commit

Permalink
Fix to analytics saving extra property in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Sep 12, 2023
1 parent 2be613d commit 493c7b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/model/query/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,10 @@ const previewMetrics = () => (({ Analytics }) => Promise.all([
metrics.system.num_questions_biggest_form = bigForm;
for (const [key, value] of Object.entries(admins))
metrics.system.num_admins[key] = value;
for (const [key, value] of Object.entries(audits))
metrics.system.num_audit_log_entries[key] = value;

metrics.system.num_audit_log_entries.recent = audits.recent;
metrics.system.num_audit_log_entries.total = audits.total;

metrics.projects = projMetrics;

metrics.system.uses_external_db = Analytics.databaseExternal(config.get('default.database.host'));
Expand Down

0 comments on commit 493c7b6

Please sign in to comment.