Skip to content

Commit

Permalink
chore(developer): correct analytic key names
Browse files Browse the repository at this point in the history
refs #285
  • Loading branch information
steveoh committed May 14, 2024
1 parent 50d7394 commit c407086
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/developer/functions/https/keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ export const getKeys = async (uid) => {
const keys = [];
querySnapshot.forEach((doc) => keys.push(doc.data()));

const usageKeys = keys.map(
(key) => `analytics:key-hit:${key.key.toLowerCase()}`,
);
const timeKeys = keys.map(
(key) => `analytics:key-time:${key.key.toLowerCase()}`,
);
const usageKeys = keys.map((key) => `analytics:hit:${key.key.toLowerCase()}`);
const timeKeys = keys.map((key) => `analytics:time:${key.key.toLowerCase()}`);

const allKeys = [...usageKeys, ...timeKeys];

Expand Down

0 comments on commit c407086

Please sign in to comment.