fix is_read
This commit is contained in:
@@ -431,6 +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)
|
||||
}
|
||||
|
||||
resp := transformer.LetterEntityToContract(&letter, attachments, dispositions, priority, institution)
|
||||
@@ -832,7 +833,7 @@ func (s *LetterServiceImpl) GetLetterCTA(ctx context.Context, letterID uuid.UUID
|
||||
|
||||
func (s *LetterServiceImpl) BulkArchiveIncomingLetters(ctx context.Context, letterIDs []uuid.UUID) (*contract.BulkArchiveLettersResponse, error) {
|
||||
userID := appcontext.FromGinContext(ctx).UserID
|
||||
|
||||
|
||||
// Archive the letters themselves
|
||||
archivedCount, err := s.processor.BulkArchiveIncomingLettersForUser(ctx, letterIDs, userID)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user