Include tier information with goals
This commit is contained in:
parent
1229b69e04
commit
7862bd9e60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user