Merge pull request #2 from codegefluester/cloud_code_validation
Added Cloud Function validation
This commit is contained in:
@@ -9,7 +9,6 @@ var router = new PromiseRouter();
|
||||
|
||||
function handleCloudFunction(req) {
|
||||
if (Parse.Cloud.Functions[req.params.functionName]) {
|
||||
// Run the validator for this function first
|
||||
if (Parse.Cloud.Validators[req.params.functionName]) {
|
||||
var result = Parse.Cloud.Validators[req.params.functionName](req.body || {});
|
||||
if (!result) {
|
||||
|
||||
Reference in New Issue
Block a user