Write your custom code as a function and trigger it from the lifecycle.
Yes, in case you use the strapi’s core update controller then that one will also trigger beforeUpdate and afterUpdate lifecycles.
Write your custom code as a function and trigger it from the lifecycle.
Yes, in case you use the strapi’s core update controller then that one will also trigger beforeUpdate and afterUpdate lifecycles.