refactor: improve variable naming and add comments for clarity in models and services
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:24:23 +05:00
parent 1039fba571
commit dc0046c730
8 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -30,9 +30,9 @@ async def session_factory() -> AsyncGenerator[async_sessionmaker[AsyncSession],
(User.__table__, Organization.__table__, OrganizationMember.__table__),
)
await conn.run_sync(Base.metadata.create_all, tables=tables)
SessionLocal = async_sessionmaker(engine, expire_on_commit=False)
session_local = async_sessionmaker(engine, expire_on_commit=False)
yield SessionLocal
yield session_local
await engine.dispose()