лаба на 3
This commit is contained in:
+2
-3
@@ -478,7 +478,7 @@ async def create_message(
|
||||
FROM attachments
|
||||
WHERE id = ANY (:attachment_ids)
|
||||
AND chat_id = :chat_id
|
||||
AND status = 'ready'
|
||||
AND status != 'failed'
|
||||
"""),
|
||||
{
|
||||
"attachment_ids": data.attachment_ids,
|
||||
@@ -793,7 +793,7 @@ async def create_attachment(
|
||||
:size_bytes,
|
||||
:sha256,
|
||||
:s3_key,
|
||||
'ready'
|
||||
'queued'
|
||||
)
|
||||
RETURNING
|
||||
id,
|
||||
@@ -852,7 +852,6 @@ async def get_attachment(
|
||||
ON cm.chat_id = a.chat_id
|
||||
WHERE a.id = :attachment_id
|
||||
AND cm.user_id = :current_user_id
|
||||
AND a.status = 'ready'
|
||||
"""
|
||||
),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user