upd
This commit is contained in:
1 parent
373c832e71
commit
1b0dfdafbc
48 files changed
+3114
-396
No files matched your search
@@ -7,7 +7,7 @@ from datetime import datetime
|
||||
from uuid import uuid4
|
||||
|
||||
from app.core.config import get_settings
|
||||
from app.core.database import get_async_session
|
||||
from app.core.database import db_manager
|
||||
from app.core.models.user import User
|
||||
from app.core.security import hash_password
|
||||
|
||||
@@ -42,7 +42,7 @@ async def create_admin_user():
|
||||
last_name = input("Enter last name (optional): ").strip() or None
|
||||
|
||||
try:
|
||||
async with get_async_session() as session:
|
||||
async with db_manager.get_session() as session:
|
||||
# Check if user already exists
|
||||
from sqlalchemy import select
|
||||
|
||||
|
||||
Reference in new issue
Block a user