Skip to content

Commit

Permalink
fix: direct referrals awards more points
Browse files Browse the repository at this point in the history
  • Loading branch information
AvilaAndre committed Feb 12, 2025
1 parent b2e57ab commit f1d52b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/app/services/referral_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class ReferralService {
referralUser.points += this.POINTS_FOR_PARTICIPANT
if (referralPromoter !== null && referralPromoter.isPromoter()) {
await referredUser.related('referredByPromoter').associate(referralPromoter)
referralPromoter.points += this.POINTS_FOR_PROMOTER
referralPromoter.points += this.POINTS_FOR_PROMOTER - this.POINTS_FOR_PARTICIPANT
referralPromoter.save()
}
await referralUser.save()
Expand Down

0 comments on commit f1d52b5

Please sign in to comment.