Compare commits

..

No commits in common. "fd48b6f63cb0490dabde423fda1753f30bfaad2d" and "a383304f781b634370d74b5775903bcf6e3f177b" have entirely different histories.

3 changed files with 9 additions and 10 deletions

View File

@ -130,9 +130,9 @@ func (s *server) GetUserMessages(ctx context.Context, request *gRPC.GetMessagesR
messageResponse.Messages = append(messageResponse.Messages, &gRPC.Message{ messageResponse.Messages = append(messageResponse.Messages, &gRPC.Message{
FromUserSourceId: request.UserSourceId, FromUserSourceId: request.UserSourceId,
FromUserSourceName: request.UserSourceName, FromUserSourceName: request.UserSourceName,
CreatedAt: message.CreatedAt, CreatedAt: message.createdAt,
Body: message.Body, Body: message.body,
Title: message.Title, Title: message.title,
}) })
} }

View File

@ -4,22 +4,21 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"log"
"net"
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database" "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database"
otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error" otterError "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/error"
"git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models"
"github.com/golang/protobuf/ptypes/timestamp" "github.com/golang/protobuf/ptypes/timestamp"
"log"
"net"
pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc" pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
type Message struct { type Message struct {
Title string title string
Body string body string
CreatedAt *timestamp.Timestamp createdAt *timestamp.Timestamp
} }
type TaskExecution func(ctx context.Context, database database.OtterSpace, userSourceUsername string, anthroveUser models.User, deepScrape bool, apiKey string, cancelFunction func()) error type TaskExecution func(ctx context.Context, database database.OtterSpace, userSourceUsername string, anthroveUser models.User, deepScrape bool, apiKey string, cancelFunction func()) error

@ -1 +1 @@
Subproject commit aa0ecfea7138f529f71fc7a13f7f887c0dcabcb2 Subproject commit 241db7ceabcf9469e1121334c0803b3cdb4f99ad