Expose installationId to Cloud Code request from req.info
This commit is contained in:
@@ -22,6 +22,7 @@ function handleCloudFunction(req) {
|
|||||||
params: req.body || {},
|
params: req.body || {},
|
||||||
master: req.auth && req.auth.isMaster,
|
master: req.auth && req.auth.isMaster,
|
||||||
user: req.auth && req.auth.user,
|
user: req.auth && req.auth.user,
|
||||||
|
installationId: req.info.installationId
|
||||||
};
|
};
|
||||||
Parse.Cloud.Functions[req.params.functionName](request, response);
|
Parse.Cloud.Functions[req.params.functionName](request, response);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user