feat(attachments): accept uploads through staging and transactional outbox
This commit is contained in:
@@ -77,7 +77,7 @@ func (s *MessageService) Create(
|
||||
return model.Message{}, ErrAttachmentNotFound
|
||||
}
|
||||
for _, status := range statuses {
|
||||
if status != db.AttachmentStatusReady {
|
||||
if status == db.AttachmentStatusFailed {
|
||||
return model.Message{}, ErrAttachmentNotReady
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user