fix 500 error

pull/227/head
Aevann 2024-05-23 02:25:38 +03:00
parent 68ab65871b
commit bc7035fa7f
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def group_usurp(v, group_name):
).first()
if is_active or not month_old_applications:
send_notification(user.id, f"@{v.username} has tried to usurp control of !{group.name} from you and failed because you reviewed a membership application in the past month!")
send_notification(group.owner_id, f"@{v.username} has tried to usurp control of !{group.name} from you and failed because you reviewed a membership application in the past month!")
g.db.commit()
abort(403, "The current regime has reviewed a membership application in the past month, so you can't usurp them!")