From 12910ee0aa9f3ac2cc837b7ab676c96ce911ae98 Mon Sep 17 00:00:00 2001 From: ciaranRoche Date: Tue, 23 Apr 2019 10:24:09 +0100 Subject: [PATCH] update js temp --- cmd/function_types_javascript.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/function_types_javascript.go b/cmd/function_types_javascript.go index 582f2a8..b6f1d6a 100644 --- a/cmd/function_types_javascript.go +++ b/cmd/function_types_javascript.go @@ -65,11 +65,13 @@ CMD [ "npm", "start" ]` func createJSMain(function *Function){ jSTemplate := `const r3x = require('@rubixfunctions/r3x-js-sdk') -let schema +/** + * Simply pass your logic to 'r3x execute' + */ r3x.execute(function(){ let response = {'message' : 'Hello r3x function'} return response -}, schema)` +})` createFile(function, jSTemplate, "r3x-func.js") }