I would like to trigger afterSave on _JobStatus class but itβs not working.
I tried several manner but nothing worked.
Parse.Cloud.afterSave(
"_JobStatus",
async (request) => {
console.log("π hello AFTER SAVE", JSON.stringify(request));
}
)
Parse.Cloud.afterSave(
Parse.Object.extend("_JobStatus"),
async (request) => {
console.log("π hello AFTER SAVE", JSON.stringify(request));
}
)
Is _JobStatus
class like Session
where the doc here says ?
Unlike other Parse objects, the
Session
class does not have Cloud Code triggers. So you cannot register abeforeSave
orafterSave
handler for the Session class
What I am trying to do: I have a quite long background job (~ 40 seconds) and I would like to save in an object the duration of the job as soon as the JobStatus
's status becomes succeeded
.
I am running "parse-server": "4.10.3"