fix unclosing ticket bug

This commit is contained in:
transcental 2025-07-07 14:21:52 +01:00
parent 6373be14c1
commit d2bcdacc31

View file

@ -45,7 +45,7 @@ async def on_message(event: Dict[str, Any], client: AsyncWebClient):
where={"msgTs": event["thread_ts"]}, where={"msgTs": event["thread_ts"]},
include={"openedBy": True, "tagsOnTickets": True}, include={"openedBy": True, "tagsOnTickets": True},
) )
if not ticket: if not ticket or ticket.status == TicketStatus.CLOSED:
return return
first_word = text.split()[0].lower() first_word = text.split()[0].lower()