We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047b24d commit 9fc09e4Copy full SHA for 9fc09e4
functions/slack/index.js
@@ -46,13 +46,15 @@ function formatSlackMessage (query, response) {
46
attachments: []
47
};
48
49
+ console.log(JSON.stringify(entity, null, 2));
50
+
51
if (entity) {
52
slackMessage.attachments.push({
53
color: '#3367d6',
54
title: entity.name + ': ' + entity.description,
55
title_link: entity.detailedDescription.url,
56
text: entity.detailedDescription.articleBody,
- image_url: entity.image.contentUrl
57
+ image_url: entity.image ? entity.image.contentUrl : undefined
58
});
59
} else {
60
0 commit comments