File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ async def delete_message(channel_id: str, message_ts: str):
1515 if e .response .get ("error" ) != "message_not_found" :
1616 raise e
1717 logging .warning (
18- f"Tried to delete message { message_ts } in channel { channel_id } but it is gone already. "
18+ f"Tried to delete message { message_ts } in channel { channel_id } but it doesn't exist ( already deleted?) "
1919 )
2020
2121
@@ -58,6 +58,7 @@ async def delete_bot_replies(ticket_ref: int):
5858async def delete_and_clean_up_ticket (ticket : Ticket ):
5959 """Removes a ticket from the DB and deletes all Slack messages associated with it"""
6060 await delete_bot_replies (ticket .id )
61- await delete_message (env .slack_help_channel , ticket .ticketTs )
61+ # Delete the backend message in the "tickets" channel
62+ await delete_message (env .slack_ticket_channel , ticket .ticketTs )
6263 # TODO deal with DMs to tag subscribers?
6364 await env .db .ticket .delete (where = {"id" : ticket .id })
You can’t perform that action at this time.
0 commit comments