Lifecycle events aren't triggering on API call

System Information
  • Strapi Version: 3.5.3
  • Operating System: MacOS
  • Database: MongoDB
  • Node Version: 14
  • NPM Version: 6
  • Yarn Version: 1.2

Hi all,

I’ve been using afterUpdate lifecycle hook with Products collection type. It’s working great when a new Product created by dashboard but it’s not triggering when calling the API via POST /products

Any workarounds?

Okay, it was actually triggering but result object is not the same with dashboard created entry. uploaded file are not in the result. This is the problem :confused: