Skip to content

Commit

Permalink
fix: added task rejected email
Browse files Browse the repository at this point in the history
  • Loading branch information
Pradip-p committed Jul 25, 2024
1 parent 4907cc7 commit d5004f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/backend/app/tasks/task_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ async def new_event(
},
)

background_tasks.add_task(
send_notification_email,
drone_operator.email_address,
"Task is Rejected",
html_content,
)

return await task_crud.update_task_state(
db,
project_id,
Expand Down

0 comments on commit d5004f5

Please sign in to comment.