Skip to content

Commit 93f2e66

Browse files
committed
format code
1 parent 060bdb6 commit 93f2e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ async def save(self, db_session: AsyncSession):
2828
try:
2929
db_session.add(self)
3030
await db_session.commit()
31-
return await db_session.refresh(self)
31+
await db_session.refresh(self)
32+
return self
3233
except SQLAlchemyError as ex:
3334
await logger.aerror(f"Error inserting instance of {self}: {repr(ex)}")
3435
raise HTTPException(

0 commit comments

Comments
 (0)