mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
V5 TODO comment to standardize webhooks payload
This commit is contained in:
parent
668907d4dc
commit
85e7476178
@ -59,6 +59,9 @@ const addCreatedByRolesPopulate = (populate) => {
|
||||
* will be passed to the webhook and db lifecycles events. The entity-manager
|
||||
* response will not have the populated relations though.
|
||||
* For performance reasons, it is recommended to set it to false,
|
||||
*
|
||||
* TODO V5: Remove this function and always load and return populated relations.
|
||||
* TODO V5: Make webhooks always send the same entity data.
|
||||
*/
|
||||
const isRelationsPopulateEnabled = () => {
|
||||
return strapi.config.get('admin.relations.populate', true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user