Include tier information with goals

This commit is contained in:
Alex Thomassen 2022-09-11 21:22:14 +00:00
parent 1229b69e04
commit 7862bd9e60
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE

View File

@ -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;