Inherit email link addresses from hosting and proxy settings
This commit is contained in:
@@ -32,7 +32,7 @@ def worker_enabled() -> bool:
|
||||
def delivery_ready() -> tuple[bool, str]:
|
||||
config = store.settings()
|
||||
if not config["public_url"]:
|
||||
return False, "Set the public Magent address for email links."
|
||||
return False, "Set the application URL in Hosting & proxy for email links."
|
||||
ready, detail = smtp_email_config_ready()
|
||||
if not ready:
|
||||
return False, detail
|
||||
@@ -147,7 +147,7 @@ async def preview(user: dict, month: str | None) -> dict:
|
||||
selected = completed_month(month)
|
||||
config = store.settings()
|
||||
if not config["public_url"]:
|
||||
raise RecapError("Save the public Magent address before previewing an email.")
|
||||
raise RecapError("Set the application URL in Hosting & proxy before previewing an email.")
|
||||
try:
|
||||
report = await asyncio.wait_for(get_monthly_report(account, selected), timeout=180)
|
||||
except HistoryLimitError as exc:
|
||||
|
||||
Reference in New Issue
Block a user