refactor: replace DefaultLimitOffsetPage with LimitOffsetPage in multiple files and update timezone handling to use UTC

This commit is contained in:
Abhimanyu Saharan
2026-02-09 20:40:17 +05:30
parent 1f105c19ab
commit 020d02fa22
51 changed files with 302 additions and 192 deletions

View File

@@ -20,7 +20,7 @@ from app.services import task_dependencies as td
async def _make_engine() -> AsyncEngine:
# Single shared in-memory db per engine.
engine = create_async_engine("sqlite+aiosqlite:///:memory:")
async with engine.begin() as conn:
async with engine.connect() as conn, conn.begin():
await conn.run_sync(SQLModel.metadata.create_all)
return engine