From 7862bd9e600bc1390c0f6b2a6749061d97093acf Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Sun, 11 Sep 2022 21:22:14 +0000 Subject: [PATCH] Include tier information with goals --- worker/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worker/index.js b/worker/index.js index f7833fd..6646269 100644 --- a/worker/index.js +++ b/worker/index.js @@ -102,8 +102,10 @@ async function fetchApi(path, params) async function getGoals() { const goals = await fetchApi('campaigns', { + 'fields[campaign]': 'patron_count', 'fields[goal]': 'amount_cents,completed_percentage,created_at,description,reached_at,title', - 'include': 'goals', + 'fields[tier]': 'amount_cents,patron_count', + 'include': 'goals,tiers', }); return goals;