Skip to content

Commit

Permalink
Merge pull request #27 from go-park-mail-ru/TP-f07_fix
Browse files Browse the repository at this point in the history
TP-f07 update: fixed a messed up parameter
  • Loading branch information
Gvidow authored Dec 27, 2023
2 parents 4e60714 + d387657 commit 16144b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/usecase/message/usecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (m *messageCase) GetMessagesFromChat(ctx context.Context, userID int, chat
UserID2: int64(chat[1]),
},
Count: int64(count),
LastID: int64(count),
LastID: int64(lastID),
})
if err != nil {
err = fmt.Errorf("get message by : %w", err)
Expand Down

0 comments on commit 16144b1

Please sign in to comment.