Closed RafaelVidaurre closed 6 years ago
Implements invites migration support when upgrading the BotInstance to the new system.
BotInstance
Makes the following changes to CertainReferral:
CertainReferral
artificial
count
getMemberScore
NOTE: This PR does not cache or optimize BotInstance queries, we should deal with this when we require it in a separate branch
Implements invites migration support when upgrading the
BotInstance
to the new system.Makes the following changes to
CertainReferral
:artificial
boolean to mark imported invites (or in the future invites generated in some other non-organic way)count
field which defaults to 1. This is used to avoid creating as many records as uses an invite link hasgetMemberScore
toCertainReferral
to get a member's scores.NOTE: This PR does not cache or optimize
BotInstance
queries, we should deal with this when we require it in a separate branch