Skip to content

Commit

Permalink
Fix missing object to add to the session
Browse files Browse the repository at this point in the history
  • Loading branch information
acasajus committed Apr 8, 2024
1 parent ec0a25b commit 8dd6b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/alias_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def delete_alias(alias: Alias, user: User):
else:
if not DeletedAlias.get_by(email=alias.email):
deleted_alias = DeletedAlias(email=alias.email)
Session.add()
Session.add(deleted_alias)
Session.commit()
LOG.i(f"Moving {alias} to global trash {deleted_alias}")

Expand Down

0 comments on commit 8dd6b60

Please sign in to comment.