Skip to content

Commit

Permalink
Do not send case traige reminders if there is no assignee. (#4008)
Browse files Browse the repository at this point in the history
* Do not send case traige reminders if there is no assignee.

* Case assignee check fails faster.
  • Loading branch information
metroid-samus authored Nov 20, 2023
1 parent 02f5ff0 commit 73db48d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dispatch/case/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def send_case_triage_reminder(case: Case, db_session: SessionLocal):
log.warning("Case triage reminder message not sent. No conversation plugin enabled.")
return

if not case.assignee:
log.warning("Case triage reminder message not sent. No assignee.")
return

items = [
{
"name": case.name,
Expand Down

0 comments on commit 73db48d

Please sign in to comment.