fix: Typo with old varo creds

This commit is contained in:
Nathan Woodburn 2025-03-07 14:55:04 +11:00
parent 30a501911f
commit 52e43cf073
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -114,9 +114,9 @@ def addDomain(params, authentication):
auth = json.load(f)
if not auth:
return {"status": "Missing Varo API or instance"}
if 'api' not in auth or 'instance' not in auth:
if 'key' not in auth or 'instance' not in auth:
return {"status": "Missing Varo API or instance"}
api = auth["api"]
api = auth["key"]
instance = auth["instance"]
headers = {"Authorization": f"Bearer {api}"}