mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 (#6320)
This commit is contained in:
@@ -10,12 +10,8 @@ from app.api.response import ResponseAPIRouter
|
||||
from app.application.security.access import get_password_hash
|
||||
from app.db import get_async_db
|
||||
from app.db.models.user import User
|
||||
from app.db.user_oper import (
|
||||
get_current_active_superuser_async,
|
||||
get_current_active_user_async,
|
||||
get_current_active_user,
|
||||
)
|
||||
from app.db.userconfig_oper import UserConfigOper
|
||||
from app.api.deps import get_current_active_superuser_async, get_current_active_user_async, get_current_active_user
|
||||
from app.db.oper.userconfig import UserConfigOper
|
||||
|
||||
router = ResponseAPIRouter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user