Skip to content

Commit

Permalink
Merge pull request #1830 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
setting value sended to webhook by karma_log id for socials
  • Loading branch information
Aashish Vinu authored Dec 15, 2023
2 parents 78191e5 + e5e39d5 commit 2dd9a0e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/dashboard/profile/profile_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,15 +407,13 @@ def create_karma_activity_log(task_title, karma_value):
appraiser_approved=True,
)

dl = WebHookActions.SEPARATOR.value
discord_id = User.objects.get(id=user_id).discord_id
value = f"{task.hashtag}{dl}{karma_value}{dl}{discord_id}{dl}{karma_log.id}"

value = karma_log.id
DiscordWebhooks.general_updates(
WebHookCategory.KARMA_INFO.value,
WebHookActions.UPDATE.value,
value
)

else:
KarmaActivityLog.objects.filter(
task_id=task.id, user_id=user_id
Expand Down

0 comments on commit 2dd9a0e

Please sign in to comment.