Hi, It’s possible to know from what kind of function has the beforeSave or afterSave been called?
For example I need to perform some actions if beforeSave is called by a contract event Sync the first time, but not if I’m updating some values of the collections with a cron job.
It’s happening now that I’m writing new data on the collection when an event is synced, then I need with a cron to update the collection rows once there is a record on another collection. But I want only to write 2 fields, with the beforeSave also all the others are written causing inconsistency.
Thank you