mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 04:45:27 +00:00
🔧 修复 admin
数据库读写引发的错误
This commit is contained in:
parent
9c208f7b4c
commit
ae7cd186bd
@ -22,7 +22,8 @@ class BotAdminRepository:
|
||||
async def add_by_user_id(self, user_id: int):
|
||||
async with self.mysql.Session() as session:
|
||||
admin = Admin(user_id=user_id)
|
||||
await session.add(admin)
|
||||
session.add(admin)
|
||||
await session.commit()
|
||||
|
||||
async def get_all_user_id(self) -> List[int]:
|
||||
async with self.mysql.Session() as session:
|
||||
|
Loading…
Reference in New Issue
Block a user