This commit is contained in:
efrilm
2025-12-05 20:58:26 +07:00
parent 5bb5287be3
commit 3b2382a6d6
+3 -3
View File
@@ -904,9 +904,9 @@ func (s *LetterOutgoingServiceImpl) AddAttachments(ctx context.Context, letterID
return err return err
} }
if letter.Status != entities.LetterOutgoingStatusDraft { //if letter.Status != entities.LetterOutgoingStatusDraft {
return gorm.ErrInvalidData // return gorm.ErrInvalidData
} //}
attachments := make([]entities.LetterOutgoingAttachment, len(req.Attachments)) attachments := make([]entities.LetterOutgoingAttachment, len(req.Attachments))
for i, a := range req.Attachments { for i, a := range req.Attachments {