lab5 done
This commit is contained in:
@@ -53,7 +53,7 @@ func (s *Storage) CreateMessageWithAttachments(ctx context.Context, chatID, send
|
||||
if err != nil {
|
||||
return domain.Message{}, dbError(err)
|
||||
}
|
||||
if status != "ready" {
|
||||
if status == "failed" {
|
||||
return domain.Message{}, domain.NewApplicationError(domain.ErrorConflict, "Вложение не готово")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user