txlyre 1 年之前
父節點
當前提交
a03954c6fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      actions.py

+ 1 - 1
actions.py

@@ -207,7 +207,7 @@ async def get_server_ip(name):
 async def add_allowed(peer_id):
   await AllowedChat(
     peer_id=peer_id
-  ).create()
+  ).save()
 
 async def delete_allowed(peer_id):
   chat = await AllowedChat.filter(