Problem with Cloud function afterSave

Hi all i have a cloud function afterSave trigger

realy simple…

Moralis.Cloud.afterSave("Carichi", async (request) => {
28  try {
29    const hash = request.object.get('hash');
30    const idAsta = request.object.get('idAsta') ?? false;
31    const idGestionale = request.object.get('idGestionale') ?? false;
32    const numeroLotto = request.object.get('numeroLotto') ?? false;
33    const buyer = request.object.get('buyer') ?? false;
34    const query = new Moralis.Query("Item");
35    query.equalTo("hash", hash);
36    let item = await query.first();
37    if (item) {
38      if (idAsta) {
39        item.set('idAsta', idAsta);
40      }
41      if (idGestionale) {
42        item.set('idGestionale', idGestionale);
43      }
44      if (numeroLotto) {
45        item.set('numeroLotto', numeroLotto);
46      }
47      if (buyer) {
48        item.set('buyer', buyer);
49      }
50      await item.save();
51    }
52  } catch (error) {
53    logger.error(error.message);
54  }
55});
56

it worked perfectly before the recents server upgrade…
now it isn’t working… no one error… and no one execution…

some one can help?

what is the server url?

if you add a logger.info("in afterSave") on the first line of that function then you see that text in server logs?

so i tried
and if i save directly the object it work…
if i save it by bulkUpdate trigger was’t fired…

did it work previously with bulkUpdate?

i think yes, but i don’t know how to check… and the problem is now it isn’t working

I don’t understand the use case, you have rows in a database, you run bulkUpdate and you want afterSave to trigger?

i have a collection… when i update this collection ( with bulkUpdate/bulkWrite for best performance ) i need another collection to bee updated with some information from the first

I don’t know if this ever worked, to trigger afterSave when bulk operations are done

afterSave triggers for real time sync or when you make a simple update to that row, for example it doesn’t trigger for historical sync