Skip to content

Commit 4fa5a88

Browse files
moklickflovilmart
authored andcommitted
fix(cloud): just return a string (#363)
When I run the cloud function example under `http://localhost:1337/test` I get an error message ` {"code":141,"error":"res.success is not a function"}`. This fixes it.
1 parent 19f5ce6 commit 4fa5a88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cloud/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Parse.Cloud.define('hello', function(req, res) {
3-
res.success('Hi');
2+
return 'Hi';
43
});

0 commit comments

Comments
 (0)