bugfix kintone get apps

This commit is contained in:
2024-12-09 15:33:47 +09:00
parent 9b1ae3bb5b
commit 21e0b9d6df
7 changed files with 14 additions and 8 deletions

View File

@@ -12,13 +12,13 @@ from app.db.session import SessionLocal
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.apiexception import APIException
from app.db.cruddb.dbdomain import dbdomain
from app.db.cruddb import domainService
kinton_router = r = APIRouter()
def getkintoneenv(user = Depends(get_current_user)):
db = SessionLocal()
domain = dbdomain.get_default_domain(db,user.id) #get_activedomain(db, user.id)
domain = domainService.get_default_domain(db,user.id) #get_activedomain(db, user.id)
db.close()
kintoneevn = config.KINTONE_ENV(domain)
return kintoneevn