Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referrals: referred_by column #1484

Open
Evanfeenstra opened this issue Feb 1, 2024 · 1 comment · Fixed by #1487
Open

referrals: referred_by column #1484

Evanfeenstra opened this issue Feb 1, 2024 · 1 comment · Fixed by #1487
Assignees
Labels
Milestone

Comments

@Evanfeenstra
Copy link
Contributor

Evanfeenstra commented Feb 1, 2024

Context

referral program for hunters

Design

This is a frontend and backend task.

In the frontend, if you visit the page and a url query exists with value of p (like ?p=123456), then save it as referred_by in localStorage ONLY if a referred_by value already doesn't exist in localStorage.

On signup, 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 called referred_by

@ecurrencyhodler
Copy link
Contributor

@elraphty I don't think the front end part has been completed. Is that right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants