From cdb7a2d010dfbf2f51ce421bd688f70e4f8f7387 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Thu, 11 Jul 2024 14:20:01 +0200 Subject: [PATCH] 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