bugfix kintone:get_default_domain
This commit is contained in:
@@ -12,13 +12,13 @@ from app.db.session import SessionLocal
|
|||||||
from app.db.crud import get_flows_by_app,get_kintoneformat
|
from app.db.crud import get_flows_by_app,get_kintoneformat
|
||||||
from app.core.auth import get_current_active_user,get_current_user
|
from app.core.auth import get_current_active_user,get_current_user
|
||||||
from app.core.apiexception import APIException
|
from app.core.apiexception import APIException
|
||||||
from app.db.cruddb.dbdomain import get_default_domain
|
from app.db.cruddb.dbdomain import dbdomain
|
||||||
|
|
||||||
kinton_router = r = APIRouter()
|
kinton_router = r = APIRouter()
|
||||||
|
|
||||||
def getkintoneenv(user = Depends(get_current_user)):
|
def getkintoneenv(user = Depends(get_current_user)):
|
||||||
db = SessionLocal()
|
db = SessionLocal()
|
||||||
domain = get_default_domain(db,user.id) #get_activedomain(db, user.id)
|
domain = dbdomain.get_default_domain(db,user.id) #get_activedomain(db, user.id)
|
||||||
db.close()
|
db.close()
|
||||||
kintoneevn = config.KINTONE_ENV(domain)
|
kintoneevn = config.KINTONE_ENV(domain)
|
||||||
return kintoneevn
|
return kintoneevn
|
||||||
|
|||||||
Reference in New Issue
Block a user