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?