VORKOUT-8 #13
@ -83,9 +83,7 @@ async def create_password_key(connection: AsyncConnection, password: str | None,
|
||||
expiry=datetime.now(timezone.utc) + timedelta(days=365),
|
||||
status=KeyStatus.ACTIVE,
|
||||
)
|
||||
stmt.on_duplicate_key_update(
|
||||
key_value=hashed_password
|
||||
)
|
||||
stmt.on_duplicate_key_update(key_value=hashed_password)
|
||||
await connection.execute(stmt)
|
||||
await connection.commit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user