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:
parent
fc7c85d592
commit
1127ee0ebc
@ -61,6 +61,7 @@ async def login_for_access_token(
|
|||||||
if allowed:
|
if allowed:
|
||||||
history = LoginHistory(user.id, client.id)
|
history = LoginHistory(user.id, client.id)
|
||||||
db.add(history)
|
db.add(history)
|
||||||
|
db.flush()
|
||||||
db.execute(
|
db.execute(
|
||||||
LoginHistory.__table__.delete(
|
LoginHistory.__table__.delete(
|
||||||
or_(
|
or_(
|
||||||
|
Loading…
Reference in New Issue
Block a user