Improved notification message with user/calendar point as field

This commit is contained in:
Tuna Celik
2020-08-17 14:43:52 +02:00
parent da31f80ba5
commit bf5272e83d
3 changed files with 16 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ class ApplicationDeleteMixin:
hook_notification_item_list.append(
HookNotificationItem(
HookNotificationItemTypes.DELETE,
access.path,
i.uid
)
)
@@ -77,6 +78,7 @@ class ApplicationDeleteMixin:
hook_notification_item_list.append(
HookNotificationItem(
HookNotificationItemTypes.DELETE,
access.path,
item.uid
)
)

View File

@@ -197,6 +197,7 @@ class ApplicationPutMixin:
for item in prepared_items:
hook_notification_item = HookNotificationItem(
HookNotificationItemTypes.UPSERT,
access.path,
item.serialize()
)
self._hook.notify(hook_notification_item)
@@ -217,6 +218,7 @@ class ApplicationPutMixin:
etag = parent_item.upload(href, prepared_item).etag
hook_notification_item = HookNotificationItem(
HookNotificationItemTypes.UPSERT,
access.path,
prepared_item.serialize()
)
self._hook.notify(hook_notification_item)