update
This commit is contained in:
parent
5bb5287be3
commit
3b2382a6d6
@ -904,9 +904,9 @@ func (s *LetterOutgoingServiceImpl) AddAttachments(ctx context.Context, letterID
|
||||
return err
|
||||
}
|
||||
|
||||
if letter.Status != entities.LetterOutgoingStatusDraft {
|
||||
return gorm.ErrInvalidData
|
||||
}
|
||||
//if letter.Status != entities.LetterOutgoingStatusDraft {
|
||||
// return gorm.ErrInvalidData
|
||||
//}
|
||||
|
||||
attachments := make([]entities.LetterOutgoingAttachment, len(req.Attachments))
|
||||
for i, a := range req.Attachments {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user