From 6ada3cd5b5d9ab0384b0835f0af2c4ba1598f6d4 Mon Sep 17 00:00:00 2001 From: asim Date: Mon, 11 Oct 2021 13:01:57 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/function/function.go | 2 +- clients/ts/function/index.ts | 2 +- examples/db/create/go/createARecord.go | 2 +- examples/db/update/go/updateARecord.go | 2 +- examples/function/call/go/callAFunction.go | 2 +- examples/function/call/node/callAFunction.js | 2 +- examples/stream/publish/go/publishAMessage.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clients/go/function/function.go b/clients/go/function/function.go index 0e1d77d..d909310 100755 --- a/clients/go/function/function.go +++ b/clients/go/function/function.go @@ -16,7 +16,7 @@ type FunctionService struct { client *client.Client } -// Call a function +// Call a function by name func (t *FunctionService) Call(request *CallRequest) (*CallResponse, error) { rsp := &CallResponse{} return rsp, t.client.Call("function", "Call", request, rsp) diff --git a/clients/ts/function/index.ts b/clients/ts/function/index.ts index 291418e..d6827ed 100755 --- a/clients/ts/function/index.ts +++ b/clients/ts/function/index.ts @@ -6,7 +6,7 @@ export class FunctionService { constructor(token: string) { this.client = new m3o.Client({ token: token }); } - // Call a function + // Call a function by name call(request: CallRequest): Promise { return this.client.call( "function", diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index f9cc6bc..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{}{ - "isActive": true, "id": "1", "name": "Jane", "age": 42, + "isActive": true, }, Table: "users", }) diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index 4c7b7e9..d1cad90 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -11,8 +11,8 @@ func UpdateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Update(&db.UpdateRequest{ Record: map[string]interface{}{ - "age": 43, "id": "1", + "age": 43, }, Table: "users", }) diff --git a/examples/function/call/go/callAFunction.go b/examples/function/call/go/callAFunction.go index 33ed314..f996b88 100755 --- a/examples/function/call/go/callAFunction.go +++ b/examples/function/call/go/callAFunction.go @@ -6,7 +6,7 @@ import ( "os" ) -// Call a function +// Call a function by name func CallAfunction() { functionService := function.NewFunctionService(os.Getenv("MICRO_API_TOKEN")) rsp, err := functionService.Call(&function.CallRequest{ diff --git a/examples/function/call/node/callAFunction.js b/examples/function/call/node/callAFunction.js index f688a54..96a27cc 100755 --- a/examples/function/call/node/callAFunction.js +++ b/examples/function/call/node/callAFunction.js @@ -1,6 +1,6 @@ import * as fx from "m3o/function"; -// Call a function +// Call a function by name async function CallAfunction() { let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN); let rsp = await functionService.call({ diff --git a/examples/stream/publish/go/publishAMessage.go b/examples/stream/publish/go/publishAMessage.go index af88ee1..f7db1b0 100755 --- a/examples/stream/publish/go/publishAMessage.go +++ b/examples/stream/publish/go/publishAMessage.go @@ -11,9 +11,9 @@ func PublishAmessage() { streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN")) rsp, err := streamService.Publish(&stream.PublishRequest{ Message: map[string]interface{}{ - "id": "1", "type": "signup", "user": "john", + "id": "1", }, Topic: "events", })