mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	trigger beforeUpdate and afterUpdate hooks
This commit is contained in:
		
							parent
							
								
									c101241611
								
							
						
					
					
						commit
						96bfc820c3
					
				| @ -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' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 hhhung
						hhhung