Skip to content

Commit

Permalink
Merge pull request #1760 from jelanmathewjames/dev
Browse files Browse the repository at this point in the history
[FIX] updated wallet on adding and removing socials
  • Loading branch information
adnankattekaden authored Dec 6, 2023
2 parents 6abe9ef + 29e7dfc commit 299ce41
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 299ce41

Please sign in to comment.