Fixed bug: Closed direct-message tickets get reopened instead of not-closed reused.
This commit is contained in:
parent
4df77067cc
commit
01df55e6de
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class Tweet
|
||||||
if tweet.class.to_s == 'Twitter::DirectMessage'
|
if tweet.class.to_s == 'Twitter::DirectMessage'
|
||||||
ticket = Ticket.find_by(
|
ticket = Ticket.find_by(
|
||||||
customer_id: user.id,
|
customer_id: user.id,
|
||||||
state: Ticket::State.where(
|
state: Ticket::State.where.not(
|
||||||
state_type_id: Ticket::StateType.where(
|
state_type_id: Ticket::StateType.where(
|
||||||
name: 'closed',
|
name: 'closed',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue