Skip to content

Commit a1c91f3

Browse files
authored
Update cloud-code.md (#810)
1 parent 3235364 commit a1c91f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/cloudcode/cloud-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Parse.Cloud.define("averageStars", async (request) => {
172172
required: true,
173173
type: String,
174174
options: val => {
175-
return val < 20;
175+
return val.length < 20;
176176
},
177177
error: "Movie must be less than 20 characters"
178178
}

0 commit comments

Comments
 (0)