Skip to content

Commit

Permalink
fix channel deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
arseny2606 committed Apr 3, 2024
1 parent fad5325 commit 6a52429
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/handlers/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,6 @@ def delete_channel_from_organization(
response.status_code = 404
return ErrorResponse(reason="No such channel")
channel_to_delete = db_session.query(DBChannel).filter(DBChannel.id == body.id).first()
for post in channel_to_delete.posts:
for tag in post.tag_bindings:
db_session.delete(tag)
channel_to_delete.posts = []
channel_to_delete.sent_infos = []
db_session.delete(channel_to_delete)
Expand Down

0 comments on commit 6a52429

Please sign in to comment.