diff --git a/app/models/transaction/slack.rb b/app/models/transaction/slack.rb index b6b716ee8..2770d2199 100644 --- a/app/models/transaction/slack.rb +++ b/app/models/transaction/slack.rb @@ -37,7 +37,9 @@ class Transaction::Slack return if !config return if !config['items'] - ticket = Ticket.find(@item[:object_id]) + ticket = Ticket.find_by(id: @item[:object_id]) + return if !ticket + if @item[:article_id] article = Ticket::Article.find(@item[:article_id])