fix(chat): resolve copilot's review

This commit is contained in:
MingxuanGame
2025-08-16 15:49:22 +00:00
parent 76dc41f78c
commit 24bfda4e0c
3 changed files with 6 additions and 3 deletions

View File

@@ -12,7 +12,9 @@ from sqlmodel.ext.asyncio.session import AsyncSession
async def create_banchobot():
async with AsyncSession(engine) as session:
is_exist = (await session.exec(select(exists()).where(User.id == 2))).first()
is_exist = (
await session.exec(select(exists()).where(User.id == BANCHOBOT_ID))
).first()
if not is_exist:
banchobot = User(
username="BanchoBot",