Skip to content

Commit 95db1c4

Browse files
author
Luferov Victor
committed
fix: Update behavior when hiding a notification
1 parent fb8c2be commit 95db1c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

devind_notifications/schema/mutations/notification_mutations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def mutate_and_get_payload(root, info: ResolveInfo, notifications_id: list[str],
7272
notification.save(update_fields=(field,))
7373
NotificationsSubscription.notify(
7474
f'notification.{notification.user_id}',
75-
ConsumerActionType.CHANGE,
75+
ConsumerActionType.DELETE if field == 'hide' else ConsumerActionType.CHANGE,
7676
notification.id
7777
)
7878
return ChangeNotificationsMutation()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616

1717
[tool.poetry.dependencies]
1818
python = "^3.9"
19-
devind-core = "^0.1.0"
19+
devind-core = "^0.1.2"
2020
Django = "^3"
2121
graphene-django = "^2.15.0"
2222
devind-helpers = "^0.2.1"

0 commit comments

Comments
 (0)