W n8n attention vm

This commit is contained in:
alma 2025-05-24 18:25:58 +02:00
parent c0bbcba507
commit 64172b0f0c

View File

@ -255,9 +255,15 @@ export async function POST(request: Request) {
}, { status: 500 });
}
if (firstResult && firstResult.json && firstResult.json.logoPath) {
logoPath = firstResult.json.logoPath;
console.log('Extracted logo path:', logoPath);
// Get logo path from the nested structure
if (firstResult?.integrationResults?.uploadResults?.logoPath) {
logoPath = firstResult.integrationResults.uploadResults.logoPath;
console.log('Extracted logo path from uploadResults:', logoPath);
} else if (firstResult?.logoPath) {
logoPath = firstResult.logoPath;
console.log('Extracted logo path from root:', logoPath);
} else {
console.log('No logo path found in result:', firstResult);
}
}