From 4fa5a88c8deada01b5326d02bbe2b8c94f4445b2 Mon Sep 17 00:00:00 2001 From: Moritz Date: Thu, 1 Nov 2018 12:02:04 +0100 Subject: [PATCH] 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. --- 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'; });