Skip to content
Open
2 changes: 2 additions & 0 deletions app/eventyay/config/eventyay.development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ allowed_hosts = ['*']
site_url = 'https://test.eventyay.com'

redis_url = 'redis://localhost/0'

short_url = 'https://test.eventyay.com'
2 changes: 2 additions & 0 deletions app/eventyay/config/eventyay.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ talk_hostname = 'https://next.eventyay.com/'
redis_url = 'redis://eventyay-next-redis/0'

celery_always_eager = false

short_url = 'https://next.eventyay.com'
4 changes: 3 additions & 1 deletion app/eventyay/config/next_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from django.utils.translation import gettext_lazy as _
from kombu import Queue
from pycountry import currencies
from pydantic import Field, HttpUrl
from pydantic import Field, HttpUrl, model_validator
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model_validator import is not used anywhere in this file. According to the PR description, a model validator should be implemented to automatically default short_url to site_url when not explicitly configured, but no such validator has been added. Either implement the validator or remove this unused import.

Suggested change
from pydantic import Field, HttpUrl, model_validator
from pydantic import Field, HttpUrl

Copilot uses AI. Check for mistakes.
from pydantic_settings import BaseSettings as _BaseSettings
from pydantic_settings import PydanticBaseSettingsSource, SettingsConfigDict, TomlConfigSettingsSource
from redis.asyncio.retry import Retry
Expand Down Expand Up @@ -146,6 +146,8 @@ class BaseSettings(_BaseSettings):
zoom_key: str = ''
zoom_secret: str = ''
control_secret: str = ''


statsd_host: str = ''
statsd_port: int = 8125
statsd_prefix: str = 'eventyay'
Expand Down
2 changes: 2 additions & 0 deletions app/eventyay/features/live/modules/bbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def room_url(self, body):
room=self.room,
),
)

if not url:
raise ConsumerException("bbb.failed")
await self.consumer.send_success({"url": url})
Expand All @@ -42,6 +43,7 @@ async def call_url(self, body):
body.get("call"),
self.consumer.user,
)

if not url:
raise ConsumerException("bbb.failed")
await self.consumer.send_success({"url": url})
Expand Down