feat: переименование доменной области
This commit is contained in:
@@ -12,14 +12,17 @@ log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def handle_unsubscription(self: 'Usecase', user_telegram_id: int, channel_telegram_id: int) -> None:
|
||||
subscriber = await self.database.get_subscriber(user_telegram_id)
|
||||
subscriber = await self.database.get_user(telegram_id=user_telegram_id)
|
||||
if not subscriber:
|
||||
log.warning('Subscriber not found for telegram_id: %s', user_telegram_id)
|
||||
return
|
||||
|
||||
subscriptions = await self.database.get_active_subscriptions_by_subscriber_and_channel(
|
||||
subscriber.id, channel_telegram_id
|
||||
)
|
||||
project = await self.database.get_project_by_channel_telegram(channel_telegram_id)
|
||||
if not project:
|
||||
log.warning('Project not found for channel telegram_id: %s', channel_telegram_id)
|
||||
return
|
||||
|
||||
subscriptions = await self.database.get_active_subscriptions_by_subscriber_and_project(subscriber.id, project.id)
|
||||
|
||||
if not subscriptions:
|
||||
log.info(
|
||||
|
||||
Reference in New Issue
Block a user