diff --git a/.env.example b/.env.example index f280375..a812d08 100644 --- a/.env.example +++ b/.env.example @@ -18,5 +18,5 @@ BREVO_LIST_ID=0 # Confirmation link CONFIRM_SECRET=replace-with-a-long-random-string -CONFIRM_BASE_URL=https://waitlist.adiuvai.com +CONFIRM_BASE_URL=https://adiuvai.com CONFIRM_TOKEN_EXPIRY_HOURS=48 diff --git a/app/config.py b/app/config.py index 9ae62d7..f002a9f 100644 --- a/app/config.py +++ b/app/config.py @@ -17,7 +17,7 @@ class Settings(BaseSettings): # Confirmation link CONFIRM_SECRET: str = secrets.token_hex(32) # override in production .env - CONFIRM_BASE_URL: str = "https://waitlist.adiuvai.com" + CONFIRM_BASE_URL: str = "https://adiuvai.com" CONFIRM_TOKEN_EXPIRY_HOURS: int = 48 model_config = {"env_file": ".env", "env_file_encoding": "utf-8"} diff --git a/app/schemas.py b/app/schemas.py index 5092af3..fedc8a5 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -9,4 +9,4 @@ class WaitlistRequest(BaseModel): class WaitlistResponse(BaseModel): ok: bool = True - message: str = "You're on the list!" + message: str = "Check your inbox for a confirmation link!" diff --git a/tests/test_waitlist.py b/tests/test_waitlist.py index 8d95f6e..f0a06a6 100644 --- a/tests/test_waitlist.py +++ b/tests/test_waitlist.py @@ -57,7 +57,7 @@ async def test_join_waitlist_success(client): assert resp.status_code == 200 data = resp.json() assert data["ok"] is True - assert "list" in data["message"].lower() + assert "inbox" in data["message"].lower() @pytest.mark.asyncio