fix: default private app type
This commit is contained in:
parent
c8ad8bb7aa
commit
c6b7695ab5
@ -36,7 +36,7 @@ def get_webhook_address(connector_name, method, exclude_uri=False):
|
|||||||
try:
|
try:
|
||||||
url = frappe.request.url
|
url = frappe.request.url
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
url = "http://localhost:8000"
|
url = frappe.utils.get_url()
|
||||||
|
|
||||||
server_url = '{uri.scheme}://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)
|
server_url = '{uri.scheme}://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user