fix is_read

This commit is contained in:
efrilm
2025-10-17 22:02:58 +07:00
parent b8beebf3f2
commit 99cb544a0f
3 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -431,7 +431,7 @@ func (s *LetterServiceImpl) ListIncomingLetters(ctx context.Context, req *contra
isRead := false
if recipient, exists := batchData.recipients[letter.ID]; exists && recipient != nil {
isRead = recipient.ReadAt != nil
log.Printf("Recipient: %+v\n", recipient)
log.Printf("Recipient debug: %+v\n", recipient)
}
resp := transformer.LetterEntityToContract(&letter, attachments, dispositions, priority, institution)