I think that when logging in with a client which will be deleted in the later command, there was an error

This commit is contained in:
Amritanshu Agrawal 2020-12-18 14:30:11 +05:30
parent fc7c85d592
commit 1127ee0ebc

View File

@ -61,6 +61,7 @@ async def login_for_access_token(
if allowed:
history = LoginHistory(user.id, client.id)
db.add(history)
db.flush()
db.execute(
LoginHistory.__table__.delete(
or_(