mirror of
https://github.com/langgenius/dify.git
synced 2026-04-24 21:05:48 +08:00
fix(api): submission return 404 for web app api
This commit is contained in:
@ -80,7 +80,7 @@ class HumanInputFormApi(Resource):
|
||||
|
||||
service = HumanInputService(db.engine)
|
||||
form = service.get_form_by_token(form_token)
|
||||
if form is None or form.recipient_type not in {RecipientType.STANDALONE_WEB_APP, RecipientType.BACKSTAGE}:
|
||||
if form is None:
|
||||
raise NotFoundError("Form not found")
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user