trigger beforeUpdate and afterUpdate hooks

This commit is contained in:
hhhung 2019-02-28 16:40:35 +08:00
parent c101241611
commit 96bfc820c3

View File

@ -127,6 +127,7 @@ module.exports = function (strapi) {
findOneAndRemove: 'beforeDestroy',
remove: 'beforeDestroy',
update: 'beforeUpdate',
updateOne: 'beforeUpdate',
find: 'beforeFetchAll',
findOne: 'beforeFetch',
save: 'beforeSave'
@ -202,6 +203,7 @@ module.exports = function (strapi) {
findOneAndRemove: 'afterDestroy',
remove: 'afterDestroy',
update: 'afterUpdate',
updateOne: 'afterUpdate',
find: 'afterFetchAll',
findOne: 'afterFetch',
save: 'afterSave'