fix upload file not set state before return (#1227)

This commit is contained in:
Sheldon 2023-06-24 02:46:53 +08:00 committed by GitHub
parent 91d872fb4c
commit aeb04e9130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -610,6 +610,9 @@ def upload(app: App):
)
# TODO: refactor this to handle yields.
update = await state._process(event).__anext__()
# Set the state for the session.
app.state_manager.set_state(event.token, state)
return update
return upload_file