Compare commits
2 Commits
decb5c661b
...
adc1a3be84
Author | SHA1 | Date | |
---|---|---|---|
|
adc1a3be84 | ||
|
cdb7a2d010 |
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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
third_party/grpc-proto
vendored
2
third_party/grpc-proto
vendored
@ -1 +1 @@
|
||||
Subproject commit 241db7ceabcf9469e1121334c0803b3cdb4f99ad
|
||||
Subproject commit aa0ecfea7138f529f71fc7a13f7f887c0dcabcb2
|
Reference in New Issue
Block a user