feat: Add Cloud Code triggers Parse.Cloud.beforeFind(Parse.File)and Parse.Cloud.afterFind(Parse.File) (#8700)

This commit is contained in:
Daniel
2025-03-28 04:22:14 +11:00
committed by GitHub
parent 042a92048a
commit b2beaa86ff
3 changed files with 181 additions and 20 deletions

View File

@@ -1004,6 +1004,9 @@ export async function maybeRunFileTrigger(triggerType, fileObject, config, auth)
return fileObject;
}
const result = await fileTrigger(request);
if (request.forceDownload) {
fileObject.forceDownload = true;
}
logTriggerSuccessBeforeHook(
triggerType,
'Parse.File',