Отедельные таблицы User и TelegramUser
This commit is contained in:
@@ -14,6 +14,9 @@ async def disconnect_project_by_tg_id(self: 'Usecase', input: dto.DisconnectProj
|
||||
if not user:
|
||||
log.warning(f'User with telegram_id {input.user_telegram_id} not found when disconnecting channel')
|
||||
return
|
||||
if user.telegram_user is None:
|
||||
log.warning('User %s missing telegram profile when disconnecting channel', user.id)
|
||||
return
|
||||
|
||||
project = await self.database.get_project_for_user_by_telegram(user.id, input.telegram_id)
|
||||
if not project:
|
||||
|
||||
Reference in New Issue
Block a user