diff --git a/functions.js b/functions.js index 8f1df1f952..48eae9544f 100644 --- a/functions.js +++ b/functions.js @@ -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) { diff --git a/index.js b/index.js index cfe38fe4ab..ebab3751dd 100644 --- a/index.js +++ b/index.js @@ -131,7 +131,7 @@ function addParseCloud() { afterSave: {}, afterDelete: {} }; - + Parse.Cloud.define = function(functionName, handler, validationHandler) { Parse.Cloud.Functions[functionName] = handler; Parse.Cloud.Validators[functionName] = validationHandler;