feat(attachments): accept uploads through staging and transactional outbox

This commit is contained in:
kk10
2026-11-14 19:52:51 +03:00
parent 4dbbd65bcf
commit 8b0ab5440d
10 changed files with 70 additions and 262 deletions
+1 -1
View File
@@ -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
}
}