feat(message): store messages in Postgres

This commit is contained in:
kk10
2026-10-05 13:26:21 +03:00
parent 04f7c046b6
commit 385a8c0312
6 changed files with 82 additions and 36 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ var (
)
type chatQueries interface {
CreateChat(ctx context.Context, arg db.CreateChatParams) (db.Chat, error)
AddChatMembers(ctx context.Context, arg db.AddChatMembersParams) error
CreateChat(ctx context.Context, arg db.CreateChatParams) (db.Chat, error)
GetChat(ctx context.Context, arg db.GetChatParams) (db.GetChatRow, error)
ListChats(ctx context.Context, arg db.ListChatsParams) ([]db.ListChatsRow, error)
}
@@ -143,7 +143,7 @@ func (s *ChatService) List(
var afterID *uuid.UUID
if cursor != nil {
decoded, err := decodeCursor(*cursor)
decoded, err := decodeCursor(*cursor, uuid.Nil)
if err != nil {
return nil, nil, ErrInvalidCursor
}