Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryHengZJ authored Dec 20, 2023
1 parent 5917256 commit 46571c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,8 @@ export class App {
return res.status(500).send('There are multiple vector nodes, please provide stopNodeId in body request')
} else if (vsNodes.length === 1 && !stopNodeId) {
stopNodeId = vsNodes[0].data.id
} else if (!vsNodes.length && !stopNodeId) {
return res.status(500).send('No vector node found')
}

const { graph } = constructGraphs(nodes, edges, { isReversed: true })
Expand Down

0 comments on commit 46571c7

Please sign in to comment.