Skip to content

Commit

Permalink
fix(cloud): just return a string (#363)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
moklick authored and flovilmart committed Nov 1, 2018
1 parent 19f5ce6 commit 4fa5a88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cloud/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Parse.Cloud.define('hello', function(req, res) {
res.success('Hi');
return 'Hi';
});

0 comments on commit 4fa5a88

Please sign in to comment.