get_activedomain->dbdomain.get_default_domain
This commit is contained in:
@@ -42,7 +42,7 @@ async def apps_list(
|
|||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
domain = get_activedomain(db, user.id)
|
domain = dbdomain.get_default_domain(db,user.id) #get_activedomain(db, user.id)
|
||||||
platformapps = get_apps(db,domain.url)
|
platformapps = get_apps(db,domain.url)
|
||||||
kintoneevn = config.KINTONE_ENV(domain)
|
kintoneevn = config.KINTONE_ENV(domain)
|
||||||
headers={config.API_V1_AUTH_KEY:kintoneevn.API_V1_AUTH_VALUE}
|
headers={config.API_V1_AUTH_KEY:kintoneevn.API_V1_AUTH_VALUE}
|
||||||
@@ -215,7 +215,7 @@ async def flow_list(
|
|||||||
db=Depends(get_db),
|
db=Depends(get_db),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
domain = get_activedomain(db, user.id)
|
domain = dbdomain.get_default_domain(db, user.id) #get_activedomain(db, user.id)
|
||||||
print("domain=>",domain)
|
print("domain=>",domain)
|
||||||
flows = get_flows_by_app(db, domain.url, appid)
|
flows = get_flows_by_app(db, domain.url, appid)
|
||||||
return flows
|
return flows
|
||||||
@@ -231,7 +231,7 @@ async def flow_create(
|
|||||||
db=Depends(get_db),
|
db=Depends(get_db),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
domain = get_activedomain(db, user.id)
|
domain = dbdomain.get_default_domain(db, user.id) #get_activedomain(db, user.id)
|
||||||
return create_flow(db, domain.url, flow)
|
return create_flow(db, domain.url, flow)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise APIException('platform:flow',request.url._url,f"Error occurred while create flow:",e)
|
raise APIException('platform:flow',request.url._url,f"Error occurred while create flow:",e)
|
||||||
@@ -248,7 +248,7 @@ async def flow_edit(
|
|||||||
db=Depends(get_db),
|
db=Depends(get_db),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
domain = get_activedomain(db, user.id)
|
domain = dbdomain.get_default_domain(db, user.id) #get_activedomain(db, user.id)
|
||||||
return edit_flow(db,domain.url, flow,user.id)
|
return edit_flow(db,domain.url, flow,user.id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise APIException('platform:flow',request.url._url,f"Error occurred while edit flow:",e)
|
raise APIException('platform:flow',request.url._url,f"Error occurred while edit flow:",e)
|
||||||
|
|||||||
Reference in New Issue
Block a user