fix(attachments): accept images and return after error responses

This commit is contained in:
kk10
2026-11-02 23:28:51 +03:00
parent 759986f642
commit aaf9a1e00a
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ SELECT
sqlc.arg(size_bytes)::int,
sqlc.arg(sha256)::text,
sqlc.arg(status)::attachment_status,
sqlc.arg(error_code)::text
NULLIF(sqlc.arg(error_code)::text, '')
WHERE EXISTS (
SELECT 1 FROM chat_members
WHERE chat_id = sqlc.arg(chat_id)