From 89eb8d3bc1715f8105b09c917c6e6149b6e9b663 Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 1 Nov 2018 11:58:44 +0100 Subject: [PATCH] fix(cloud): just return a string 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. --- cloud/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud/main.js b/cloud/main.js index 8925fe4cc5..00d2439d7b 100644 --- a/cloud/main.js +++ b/cloud/main.js @@ -1,4 +1,3 @@ - Parse.Cloud.define('hello', function(req, res) { - res.success('Hi'); + return 'Hi'; });