Запрос на слияние 'sber_mobile' (#44) из sber_mobile в main

This commit is contained in:
DmitrievMS
2025-06-16 11:05:06 +00:00

View File

@@ -39,8 +39,6 @@ router.post('/moderate', async (req, res) => {
// Модерация текста (передаем title и description как body)
const [comment, fixedText, isApproved] = await moderationText(title, description, GIGA_AUTH);
console.log('Результат модерации получен:', { comment, fixedText: fixedText?.substring(0, 100), isApproved });
// Если модерация не прошла, возвращаем undefined
if (!isApproved) {
if (!comment || comment.trim() === '') {