refactor: set node_set to None for endpoint
This commit is contained in:
parent
9524109029
commit
74bc7c9420
2 changed files with 6 additions and 2 deletions
|
|
@ -73,7 +73,11 @@ def get_add_router() -> APIRouter:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
add_run = await cognee_add(
|
add_run = await cognee_add(
|
||||||
data, datasetName, user=user, dataset_id=datasetId, node_set=node_set
|
data,
|
||||||
|
datasetName,
|
||||||
|
user=user,
|
||||||
|
dataset_id=datasetId,
|
||||||
|
node_set=node_set if node_set else None,
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(add_run, PipelineRunErrored):
|
if isinstance(add_run, PipelineRunErrored):
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ def get_update_router() -> APIRouter:
|
||||||
data=data,
|
data=data,
|
||||||
dataset_id=dataset_id,
|
dataset_id=dataset_id,
|
||||||
user=user,
|
user=user,
|
||||||
node_set=node_set,
|
node_set=node_set if node_set else None,
|
||||||
)
|
)
|
||||||
|
|
||||||
# If any cognify run errored return JSONResponse with proper error status code
|
# If any cognify run errored return JSONResponse with proper error status code
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue