Skip to content

Commit

Permalink
Update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed May 10, 2024
1 parent f132141 commit ff6367c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/validators/agent_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports.agentValidator = void 0;
const agentValidator = (graphAgentIds, agentIds) => {
graphAgentIds.forEach((agentId) => {
if (!agentIds.has(agentId)) {
throw new Error("Invalid AgentId : " + agentId + " is not in callbackDictonary.");
throw new Error("Invalid Agent : " + agentId + " is not in callbackDictonary.");
}
});
return true;
Expand Down
4 changes: 2 additions & 2 deletions lib/validators/nodeValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.nodeValidator = void 0;
const nodeValidator = (nodeData) => {
if (nodeData.agent && nodeData.value) {
throw new Error("Cannot set both agentId and value");
throw new Error("Cannot set both agent and value");
}
if (!("agent" in nodeData) && !("value" in nodeData)) {
throw new Error("Either agentId or value is required");
throw new Error("Either agent or value is required");
}
return true;
};
Expand Down

0 comments on commit ff6367c

Please sign in to comment.