mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 09:58:58 +08:00
fix: document_create_args_validate (#8569)
This commit is contained in:
parent
52da5b16e7
commit
4f69adc8ab
@ -1100,8 +1100,8 @@ class DocumentService:
|
|||||||
DocumentService.data_source_args_validate(args)
|
DocumentService.data_source_args_validate(args)
|
||||||
DocumentService.process_rule_args_validate(args)
|
DocumentService.process_rule_args_validate(args)
|
||||||
else:
|
else:
|
||||||
if ("data_source" not in args and not args["data_source"]) and (
|
if ("data_source" not in args or not args["data_source"]) and (
|
||||||
"process_rule" not in args and not args["process_rule"]
|
"process_rule" not in args or not args["process_rule"]
|
||||||
):
|
):
|
||||||
raise ValueError("Data source or Process rule is required")
|
raise ValueError("Data source or Process rule is required")
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user