first com2

This commit is contained in:
2026-04-08 17:10:36 +07:00
parent 8a597f880f
commit fc45816eba
34 changed files with 1310 additions and 29 deletions

View File

@@ -21,3 +21,14 @@ class UserRepository:
await session.commit()
return user
async def update_user_topic(
self, session: AsyncSession, user_id: int, thread_id: int
) -> Optional[User]:
user = await self.get_user_by_id(session, user_id=user_id)
if not user:
return None
user.support_thread_id = thread_id
await session.commit()
return user