From cdb7a2d010dfbf2f51ce421bd688f70e4f8f7387 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Thu, 11 Jul 2024 14:20:01 +0200 Subject: [PATCH 1/2] fix: Public variables --- pkg/plug/grpc.go | 6 +++--- pkg/plug/server.go | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pkg/plug/grpc.go b/pkg/plug/grpc.go index 44015f3..f45c576 100644 --- a/pkg/plug/grpc.go +++ b/pkg/plug/grpc.go @@ -130,9 +130,9 @@ func (s *server) GetUserMessages(ctx context.Context, request *gRPC.GetMessagesR messageResponse.Messages = append(messageResponse.Messages, &gRPC.Message{ FromUserSourceId: request.UserSourceId, FromUserSourceName: request.UserSourceName, - CreatedAt: message.createdAt, - Body: message.body, - Title: message.title, + CreatedAt: message.CreatedAt, + Body: message.Body, + Title: message.Title, }) } diff --git a/pkg/plug/server.go b/pkg/plug/server.go index 2f3b236..a9fc7bb 100644 --- a/pkg/plug/server.go +++ b/pkg/plug/server.go @@ -4,21 +4,22 @@ import ( "context" "errors" "fmt" + "log" + "net" + "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database" otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" "github.com/golang/protobuf/ptypes/timestamp" - "log" - "net" pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc" "google.golang.org/grpc" ) type Message struct { - title string - body string - createdAt *timestamp.Timestamp + Title string + Body string + CreatedAt *timestamp.Timestamp } type TaskExecution func(ctx context.Context, database database.OtterSpace, userSourceUsername string, anthroveUser models.User, deepScrape bool, apiKey string, cancelFunction func()) error -- 2.45.2 From adc1a3be845e25b6c49ba049293fcea89388cbd6 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Thu, 11 Jul 2024 14:20:15 +0200 Subject: [PATCH 2/2] feat: updated protobuf --- third_party/grpc-proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/grpc-proto b/third_party/grpc-proto index 241db7c..aa0ecfe 160000 --- a/third_party/grpc-proto +++ b/third_party/grpc-proto @@ -1 +1 @@ -Subproject commit 241db7ceabcf9469e1121334c0803b3cdb4f99ad +Subproject commit aa0ecfea7138f529f71fc7a13f7f887c0dcabcb2 -- 2.45.2