update
This commit is contained in:
parent
5bb5287be3
commit
3b2382a6d6
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user