Add notifications for document and collection access (#6460)

* Add notification for added to document

* Add notifications for document and collection access

* Add notification delay

* fix: Collection notifications not appearing

* Add notification settings
This commit is contained in:
Tom Moor
2024-01-31 15:01:27 -08:00
committed by GitHub
parent 5ce8827a8c
commit 47d168a29b
18 changed files with 437 additions and 31 deletions

View File

@@ -450,7 +450,7 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
event,
subscription,
payload: {
id: event.data.membershipId,
id: event.modelId,
model: model && presentMembership(model),
collection: model && presentCollection(model.collection!),
user: model && presentUser(model.user),
@@ -477,7 +477,7 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
event,
subscription,
payload: {
id: event.data.membershipId,
id: event.modelId,
model: model && presentCollectionGroupMembership(model),
collection: model && presentCollection(model.collection!),
group: model && presentGroup(model.group),