Skip to content

Commit cffafbb

Browse files
committed
Add missing commit calls in access token adapter
1 parent 3988949 commit cffafbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fastapi_users_db_sqlalchemy/access_token.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ async def update(self, access_token: A) -> A:
6969
.values(access_token.dict())
7070
)
7171
await self.session.execute(statement)
72+
await self.session.commit()
7273
return access_token
7374

7475
async def delete(self, access_token: A) -> None:
7576
statement = delete(
7677
self.access_token_table, self.access_token_table.token == access_token.token
7778
)
7879
await self.session.execute(statement)
80+
await self.session.commit()

0 commit comments

Comments
 (0)