diff --git a/src/collections/operations/create.js b/src/collections/operations/create.js index f4cf028277..e2a0eed623 100644 --- a/src/collections/operations/create.js +++ b/src/collections/operations/create.js @@ -183,8 +183,8 @@ async function create(args) { result = await performFieldOperations(collectionConfig, { data: result, - hook: 'afterRead', - operation: 'read', + hook: 'afterChange', + operation: 'create', req, depth, overrideAccess, diff --git a/src/collections/operations/update.js b/src/collections/operations/update.js index 02331d4f87..8f1908e3df 100644 --- a/src/collections/operations/update.js +++ b/src/collections/operations/update.js @@ -223,8 +223,8 @@ async function update(args) { doc = await this.performFieldOperations(collectionConfig, { data: doc, - hook: 'afterRead', - operation: 'read', + hook: 'afterChange', + operation: 'update', req, id, depth,