Move collection description rendering to JSON (#6944)
* First pass, moving collection description rendering to JSON * tsc * docs * refactor * test
This commit is contained in:
@@ -428,7 +428,7 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
|
||||
subscription,
|
||||
payload: {
|
||||
id: event.collectionId,
|
||||
model: model && presentCollection(model),
|
||||
model: model && (await presentCollection(undefined, model)),
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -454,7 +454,8 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
|
||||
payload: {
|
||||
id: event.modelId,
|
||||
model: model && presentMembership(model),
|
||||
collection: model && presentCollection(model.collection!),
|
||||
collection:
|
||||
model && (await presentCollection(undefined, model.collection!)),
|
||||
user: model && presentUser(model.user),
|
||||
},
|
||||
});
|
||||
@@ -481,7 +482,8 @@ export default class DeliverWebhookTask extends BaseTask<Props> {
|
||||
payload: {
|
||||
id: event.modelId,
|
||||
model: model && presentCollectionGroupMembership(model),
|
||||
collection: model && presentCollection(model.collection!),
|
||||
collection:
|
||||
model && (await presentCollection(undefined, model.collection!)),
|
||||
group: model && presentGroup(model.group),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user