From c888ad02de5ab3390131965d946b4cb140d08654 Mon Sep 17 00:00:00 2001 From: asim Date: Thu, 28 Oct 2021 07:37:03 +0000 Subject: [PATCH 1/3] Commit from GitHub Actions (Generate Clients & Examples) --- clients/ts/package.json | 2 +- examples/db/update/go/updateARecord.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/ts/package.json b/clients/ts/package.json index 457b66b..c1f8fbb 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -76,5 +76,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.581" + "version": "1.0.590" } \ No newline at end of file diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index 4517043..1fb0e47 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -12,8 +12,8 @@ func UpdateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Update(&db.UpdateRequest{ Record: map[string]interface{}{ - "id": "1", "age": 43, + "id": "1", }, Table: "users", }) From f5c9b477ac917f02ae661bc3e7c7ed683d209da6 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 28 Oct 2021 08:44:04 +0100 Subject: [PATCH 2/3] Update user.proto --- user/proto/user.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/proto/user.proto b/user/proto/user.proto index 7e36801..0aa7b04 100644 --- a/user/proto/user.proto +++ b/user/proto/user.proto @@ -28,7 +28,9 @@ message Account { int64 created = 4; // unix timestamp int64 updated = 5; + // if the account is verified bool verified = 6; + // date of verification int64 verificationDate = 7; // Store any custom data you want about your users in this fields. map profile = 8; From 285526f8cc15f3d368ee45ea790a3f70b7fcc2eb Mon Sep 17 00:00:00 2001 From: asim Date: Thu, 28 Oct 2021 07:48:21 +0000 Subject: [PATCH 3/3] Commit from GitHub Actions (Generate Clients & Examples) --- clients/go/user/user.go | 8 +++++--- clients/ts/package.json | 2 +- examples/db/update/go/updateARecord.go | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/clients/go/user/user.go b/clients/go/user/user.go index 8387486..b8d3a5f 100755 --- a/clients/go/user/user.go +++ b/clients/go/user/user.go @@ -95,9 +95,11 @@ type Account struct { // unix timestamp Updated int64 `json:"updated,string"` // alphanumeric username - Username string `json:"username"` - VerificationDate int64 `json:"verificationDate,string"` - Verified bool `json:"verified"` + Username string `json:"username"` + // date of verification + VerificationDate int64 `json:"verificationDate,string"` + // if the account is verified + Verified bool `json:"verified"` } type CreateRequest struct { diff --git a/clients/ts/package.json b/clients/ts/package.json index c1f8fbb..059d2c8 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -76,5 +76,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.590" + "version": "1.0.591" } \ No newline at end of file diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index 1fb0e47..4517043 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -12,8 +12,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", })