get_activedomain->dbdomain.get_default_domain

This commit is contained in:
2024-12-01 12:01:31 +09:00
parent 647a5f4b8e
commit 39b02e0a8e

View File

@@ -42,7 +42,7 @@ async def apps_list(
):
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)
kintoneevn = config.KINTONE_ENV(domain)
headers={config.API_V1_AUTH_KEY:kintoneevn.API_V1_AUTH_VALUE}
@@ -215,7 +215,7 @@ async def flow_list(
db=Depends(get_db),
):
try:
domain = get_activedomain(db, user.id)
domain = dbdomain.get_default_domain(db, user.id) #get_activedomain(db, user.id)
print("domain=>",domain)
flows = get_flows_by_app(db, domain.url, appid)
return flows
@@ -231,7 +231,7 @@ async def flow_create(
db=Depends(get_db),
):
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)
except Exception as 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),
):
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)
except Exception as e:
raise APIException('platform:flow',request.url._url,f"Error occurred while edit flow:",e)