Create and pass referred_by
value to backend if p
query exists in the url.
#183
Milestone
referred_by
value to backend if p
query exists in the url.
#183
Context
We are creating a referral program to pay out rewards automatically to hunters that refer.
First create the
referred_by
property in the local browser.Then when a referred hunter signs up anywhere on our site (https://community.sphinx.chat/bounties), if
referred_by
UUID exists in localStorage, then send it to the backend, find that person's ID, and store it on the newly created Person record as a new SQL column calledreferred_by
.If
referred_by
is already known, then the new uuid will be ignored.This task is specifically for passing the uuid to the backend.
Acceptance Criteria
Here is an example unit test
Here is an example component test
The text was updated successfully, but these errors were encountered: