Update app/db.py
Browse files
app/db.py
CHANGED
@@ -34,7 +34,7 @@ class User(SQLAlchemyBaseUserTableUUID, Base):
|
|
34 |
|
35 |
engine = create_async_engine(DATABASE_URL, echo=True)
|
36 |
async_session_maker = async_sessionmaker(engine,
|
37 |
-
|
38 |
autoflush=True,
|
39 |
autocommit=False,
|
40 |
expire_on_commit=False,
|
|
|
34 |
|
35 |
engine = create_async_engine(DATABASE_URL, echo=True)
|
36 |
async_session_maker = async_sessionmaker(engine,
|
37 |
+
class_=AsyncSession,
|
38 |
autoflush=True,
|
39 |
autocommit=False,
|
40 |
expire_on_commit=False,
|