Skip to content

Commit

Permalink
Merge pull request #1761 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
social karma wallet
  • Loading branch information
adnankattekaden authored Dec 6, 2023
2 parents 86f1a10 + 299ce41 commit c9d0f1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/dashboard/profile/profile_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ def create_karma_activity_log(task_title, karma_value):
updated_by_id=user_id,
created_by_id=user_id,
)
Wallet.objects.filter(user_id=user_id).update(
karma=F("karma") + karma_value,
updated_by_id=user_id
)

for account, account_url in validated_data.items():
old_account_url = getattr(instance, account)
Expand Down

0 comments on commit c9d0f1d

Please sign in to comment.