Skip to content

Commit

Permalink
TP-f07 update: fixed a messed up parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Gvidow committed Dec 27, 2023
1 parent 4e60714 commit d387657
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 d387657

Please sign in to comment.