浏览代码

fix DeletedALias

Son NK 5 年之前
父节点
当前提交
526df4ea09
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/alias_utils.py

+ 1 - 1
app/alias_utils.py

@@ -61,7 +61,7 @@ def try_auto_create_directory(address: str) -> Optional[Alias]:
             return None
 
         # if alias has been deleted before, do not auto-create it
-        if DeletedAlias.get_by(email=address, user_id=directory.user_id):
+        if DeletedAlias.get_by(email=address):
             LOG.warning(
                 "Alias %s was deleted before, cannot auto-create using directory %s, user %s",
                 address,