Skip to content

Commit

Permalink
Fix usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao committed Oct 20, 2023
1 parent a106098 commit 671c9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/api/users/[id]/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export default async (

const usage = websiteUsage.reduce(
(acc, cv) => {
acc.websiteEventUsage += cv.websiteEventUsage;
acc.eventDataUsage += cv.eventDataUsage;
acc.websiteEventUsage += Number(cv.websiteEventUsage);
acc.eventDataUsage += Number(cv.eventDataUsage);

return acc;
},
Expand Down

0 comments on commit 671c9fc

Please sign in to comment.