Skip to content

Commit

Permalink
Fix total from tracker api
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Aug 13, 2023
1 parent 8a7d976 commit 4b777cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/tracker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function updateDonationTotalFromAPI(init = false): Promise<void> {
try {
let total = 0;
for (const event of eventInfo) {
const resp = await needle('get', `https://${config.address}/${event.id}?json`);
const resp = await needle('get', `https://${config.address}/event/${event.id}?json`);
if (resp.statusCode === 200) {
const eventTotal = resp.body.agg.amount ? parseFloat(resp.body.agg.amount) : 0;
event.total = eventTotal;
Expand Down

0 comments on commit 4b777cc

Please sign in to comment.