How to filter the fields in lifecycle

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello, I have an Order content type containing a Tracking field. I want to send the email notification to users only if the field is filled with tracking number.

Is that possible to only filter that field in lifecycles? I don’t understand how the params in that afterUpdate lifecycle hook works.

Thanks and happy new year!!