From a1c91f3a769cfad9b032f61e781cee4e0e63bd65 Mon Sep 17 00:00:00 2001 From: dblythy Date: Wed, 6 Jan 2021 03:08:11 +1100 Subject: [PATCH] Update cloud-code.md (#810) --- _includes/cloudcode/cloud-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }