Skip to content

Commit

Permalink
add commits after deletes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaniyaps committed Mar 7, 2024
1 parent 314461b commit ec3d6c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/app/repositories/register_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async def recreate_verification_code(
),
),
)
await self._session.commit()

return verification_code

Expand Down
3 changes: 3 additions & 0 deletions server/app/repositories/user_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def delete(
UserSession.id == user_session_id and UserSession.user_id == user_id,
),
)
await self._session.commit()

async def update(
self,
Expand All @@ -79,6 +80,7 @@ async def update(
logged_out_at=logged_out_at,
)
)
await self._session.commit()

async def logout_all(
self,
Expand All @@ -92,3 +94,4 @@ async def logout_all(
logged_out_at=text("NOW()"),
),
)
await self._session.commit()

0 comments on commit ec3d6c1

Please sign in to comment.