Skip to content

Commit 8f67623

Browse files
add extra slack message
1 parent 4b99c75 commit 8f67623

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/tasks/cwv-demo-suggestions-processor

src/tasks/cwv-demo-suggestions-processor/handler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ async function processCWVOpportunity(opportunity, logger, env, slackContext) {
218218
if (suggestionsToUpdate.length > 0) {
219219
logger.info(`Added ${totalIssuesAdded} generic CWV suggestions for opportunity ${opportunity.getId()}`);
220220
await say(env, logger, slackContext, `🎯 Added ${totalIssuesAdded} generic CWV suggestions for opportunity ${opportunity.getId()}`);
221+
} else {
222+
logger.info(`No generic CWV suggestions added for opportunity ${opportunity.getId()}`);
223+
await say(env, logger, slackContext, `No generic CWV suggestions added for opportunity ${opportunity.getId()}`);
221224
}
222225

223226
return suggestionsToUpdate.length;

0 commit comments

Comments
 (0)