overmindbots / core

Core monorepo with our apps and packages
1 stars 0 forks source link

Feature/invites 3.0 referral endpoint #128

Closed monitz87 closed 6 years ago

monitz87 commented 6 years ago

This PR implements the /oauth/callback endpoint, which does the following:

1) Fetch the corresponding unified guild invite (create it if it doesn't exist) 2) Create a new referral assignment between the inviter and the invitee 3) Redirect the invitee to the invite url

monitz87 commented 6 years ago

I can create something like a CertainReferral model for this, and leave the old Referral model as-is.

RafaelVidaurre commented 6 years ago

That works @monitz87