Rename product to OrbitWard
This commit is contained in:
@@ -14,7 +14,7 @@ router = APIRouter(prefix="/notifications/channels", tags=["notifications"])
|
||||
|
||||
def _channel_to_read(channel: NotificationChannel) -> NotificationChannelRead:
|
||||
settings = dict(channel.settings or {})
|
||||
settings.setdefault("username", "OrbitalWard")
|
||||
settings.setdefault("username", "OrbitWard")
|
||||
return NotificationChannelRead(
|
||||
id=channel.id,
|
||||
name=channel.name,
|
||||
@@ -40,7 +40,7 @@ def create_channel(
|
||||
db: Session = Depends(get_db),
|
||||
) -> NotificationChannelRead:
|
||||
channel_settings = dict(payload.settings or {})
|
||||
channel_settings.setdefault("username", "OrbitalWard")
|
||||
channel_settings.setdefault("username", "OrbitWard")
|
||||
channel = NotificationChannel(
|
||||
name=payload.name,
|
||||
channel_type=payload.channel_type,
|
||||
@@ -70,8 +70,8 @@ def test_channel(
|
||||
response = httpx.post(
|
||||
url,
|
||||
json={
|
||||
"username": (channel.settings or {}).get("username") or "OrbitalWard",
|
||||
"text": f"OrbitalWard test notification for {channel.name}",
|
||||
"username": (channel.settings or {}).get("username") or "OrbitWard",
|
||||
"text": f"OrbitWard test notification for {channel.name}",
|
||||
},
|
||||
timeout=10,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user