Skip to content

Commit

Permalink
fix: send delete reports (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMohammad20000 authored Jan 6, 2025
1 parent ee55da1 commit 09fd329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def remove_user(
bg.add_task(xray.operations.remove_user, dbuser=dbuser)

bg.add_task(
report.user_deleted, username=dbuser.username, user_admin=dbuser.admin, by=admin
report.user_deleted, username=dbuser.username, user_admin=Admin.model_validate(dbuser.admin), by=admin
)

logger.info(f'User "{dbuser.username}" deleted')
Expand Down

0 comments on commit 09fd329

Please sign in to comment.