-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
…erral_id for referral credits
…d count to track multiple sends
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to understand a little bit more about how the referrals model is used/works but otherwise these seem to be reasonable changes
LGTM. Merging. |
Is this not work-in-progress (e.g. not ready to merge) as with the WIP in the title? Looks like there is API/model change here that will need major bump, and code coverage decreased. |
@dylanlott & @barbaraliau , can you please remove WIP from this MR and discuss with @braydonf the API change and where the version should land for this? I can re-publish (unpublish and publish) the version that is decided upon. |
'recipient.email': recipientEmail | ||
}).then((referral) => { | ||
if (referral) { | ||
referral.count += referral.count; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be a concurrency issue here if two processes do this at the same time, one of the count will go missing.
Referrals updates