Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Update post object #66

Open
AndyEPhipps opened this issue Aug 16, 2018 · 0 comments
Open

Update post object #66

AndyEPhipps opened this issue Aug 16, 2018 · 0 comments
Assignees

Comments

@AndyEPhipps
Copy link
Collaborator

AndyEPhipps commented Aug 16, 2018

As per @corinja 's request to make everything nice and dynamic, and easily iterate-over-able:

let postBody = {
  transSourceURL: 'https://www.comicrelief.com/eligibility-checker',
  campaign: 'CR',
  transSource: 'CR_GrantsEligibility',
  timestamp: 362386858989,
  submission: {
    success: (isSuccessful ? 1 : 0),
    organisation: allResponses.organisation,
    income: allResponses.income,
    locationWeFund: allResponses['location-we-fund'],
    sportForChange: allResponses['sport-for-change'],
    activityWeDontFund: allResponses['activity-we-dont-fund'],
  },
};
@AndyEPhipps AndyEPhipps self-assigned this Aug 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant