From 98a06a17352a2ab985e4759b05061dda793bf0ea Mon Sep 17 00:00:00 2001 From: jelanmathewjames Date: Fri, 15 Dec 2023 22:11:29 +0530 Subject: [PATCH] setting value sended to webhook by karma_log id for socials --- api/dashboard/profile/profile_serializer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/dashboard/profile/profile_serializer.py b/api/dashboard/profile/profile_serializer.py index c50642c7..a6f3d1eb 100644 --- a/api/dashboard/profile/profile_serializer.py +++ b/api/dashboard/profile/profile_serializer.py @@ -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