refactor(db): use int for attachment size and add lookup query

This commit is contained in:
kk10
2026-11-02 21:16:58 +03:00
parent 45c9f7731d
commit 983bbaa55e
9 changed files with 49 additions and 16 deletions
+2 -2
View File
@@ -143,7 +143,7 @@ func (s *ChatService) List(
if cursor == nil {
rows, err := s.q.ListChatsFirstPage(ctx, db.ListChatsFirstPageParams{
UserID: userID,
Lim: int32(limit + 1),
Lim: limit + 1,
})
if err != nil {
return nil, nil, err
@@ -168,7 +168,7 @@ func (s *ChatService) List(
UserID: userID,
AfterCreatedAt: decoded.CreatedAt,
AfterID: decoded.ID,
Lim: int32(limit + 1),
Lim: limit + 1,
})
if err != nil {
return nil, nil, err