refactor: replace DefaultLimitOffsetPage with LimitOffsetPage in multiple files and update timezone handling to use UTC
This commit is contained in:
@@ -132,7 +132,7 @@ async def save(
|
||||
return obj
|
||||
|
||||
|
||||
async def delete(session: AsyncSession, obj: ModelT, *, commit: bool = True) -> None:
|
||||
async def delete(session: AsyncSession, obj: SQLModel, *, commit: bool = True) -> None:
|
||||
"""Delete an object with optional commit."""
|
||||
await session.delete(obj)
|
||||
if commit:
|
||||
|
||||
Reference in New Issue
Block a user