diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index c582849..ed2b1c4 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -11,10 +11,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ + "id": "1", "name": "Jane", "age": 42, "isActive": true, - "id": "1", }, Table: "users", }) diff --git a/examples/function/deploy/curl/deployAFunction.sh b/examples/function/deploy/curl/deployAFunction.sh index 852fbaf..763c8de 100755 --- a/examples/function/deploy/curl/deployAFunction.sh +++ b/examples/function/deploy/curl/deployAFunction.sh @@ -5,5 +5,6 @@ curl "https://api.m3o.com/v1/function/Deploy" \ "entrypoint": "helloworld", "name": "my-first-func", "project": "tests", - "repo": "github.com/m3o/nodejs-function-example" + "repo": "github.com/m3o/nodejs-function-example", + "runtime": "nodejs14" }' \ No newline at end of file diff --git a/examples/function/deploy/go/deployAFunction.go b/examples/function/deploy/go/deployAFunction.go index 5d3c98b..bfbc6a4 100755 --- a/examples/function/deploy/go/deployAFunction.go +++ b/examples/function/deploy/go/deployAFunction.go @@ -14,6 +14,7 @@ func DeployAfunction() { Name: "my-first-func", Project: "tests", Repo: "github.com/m3o/nodejs-function-example", + Runtime: "nodejs14", }) fmt.Println(rsp, err) } diff --git a/examples/function/deploy/node/deployAFunction.js b/examples/function/deploy/node/deployAFunction.js index f8e82a1..cb05471 100755 --- a/examples/function/deploy/node/deployAFunction.js +++ b/examples/function/deploy/node/deployAFunction.js @@ -8,6 +8,7 @@ async function DeployAfunction() { name: "my-first-func", project: "tests", repo: "github.com/m3o/nodejs-function-example", + runtime: "nodejs14", }); console.log(rsp); }