diff --git a/_includes/cloudcode/cloud-code.md b/_includes/cloudcode/cloud-code.md index a39062812..eba5519fa 100644 --- a/_includes/cloudcode/cloud-code.md +++ b/_includes/cloudcode/cloud-code.md @@ -172,7 +172,7 @@ Parse.Cloud.define("averageStars", async (request) => { required: true, type: String, options: val => { - return val < 20; + return val.length < 20; }, error: "Movie must be less than 20 characters" }