Skip to content

Commit 7560378

Browse files
authored
fix: Correct push notification label error (#2411)
* fix: push notification label error * chore: updated string comparision
1 parent 74ab593 commit 7560378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apiserver/plane/graphql/bgtasks/push_notification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def issue_push_notifications(notification):
322322
body = (
323323
f"{actor_name} "
324324
f"{'added a new' if new_value else 'removed the'} "
325-
f"{'assignee' if property_key == 'assignees' else "label"} "
325+
f"{'assignee' if property_key == 'assignees' else 'label'} "
326326
f"{new_value if new_value else old_value}"
327327
)
328328
# start_date and target_date
@@ -385,7 +385,7 @@ def issue_push_notifications(notification):
385385
comment_data = comment_content(content) if content else None
386386
body = (
387387
f"{actor_name} "
388-
f"{'removed the comment' if new_value == "None" and old_value == "None" else 'updated the comment' if old_value != "None" else 'commented'} "
388+
f"{'removed the comment' if new_value == 'None' and old_value == 'None' else 'updated the comment' if old_value != 'None' else 'commented'} "
389389
f"{comment_data['content'] if comment_data else ''}"
390390
)
391391

0 commit comments

Comments
 (0)