ваше сообщение коммита

This commit is contained in:
2025-06-24 16:45:50 +03:00
parent 5111b584e5
commit 5dcb8dd500
19 changed files with 11802 additions and 15078 deletions

View File

@@ -351,9 +351,9 @@ router.post('/message', requireAuth, upload.array('attachments'), async (req, re
} else {
// Обычный пользователь — только в свой диалог
convResult = await db.getQuery()(
'SELECT * FROM conversations WHERE id = $1 AND user_id = $2',
[conversationId, userId]
);
'SELECT * FROM conversations WHERE id = $1 AND user_id = $2',
[conversationId, userId]
);
}
if (convResult.rows.length === 0) {
logger.warn('Conversation not found or access denied', { conversationId, userId });