refactor: rename the name to input_id

This commit is contained in:
BennyKok
2023-12-15 12:50:31 +08:00
parent eac8d709f9
commit e6f5b16a54
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export async function createRun(
if (inputs && workflow_api) {
for (const key in inputs) {
Object.entries(workflow_api).forEach(([_, node]) => {
if (node.inputs["name"] === key) {
node.inputs["name"] = inputs[key];
if (node.inputs["input_id"] === key) {
node.inputs["input_id"] = inputs[key];
}
});
}