Skip to content

Commit

Permalink
Fix to analytics saving extra property in wrong place (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite authored Sep 12, 2023
1 parent 2be613d commit f02dd3a
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 f02dd3a

Please sign in to comment.