Make WorkflowWebhookWorker usage more mindful (#18831)
This commit is contained in:
parent
e63423573c
commit
0d18b092d2
1 changed files with 4 additions and 1 deletions
|
|
@ -167,7 +167,10 @@ module Feeds
|
|||
next
|
||||
end
|
||||
|
||||
Slack::WorkflowWebhookWorker.perform_async("Imported #{articles.length} articles for #{user.username}")
|
||||
if articles.length.positive?
|
||||
Slack::WorkflowWebhookWorker.perform_async("Imported #{articles.length} articles for #{user.username}")
|
||||
end
|
||||
|
||||
articles
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue