Skip to content

Commit

Permalink
samples: Make inputs clear (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
averikitsch authored and grayside committed Nov 3, 2022
1 parent 1311940 commit 8e6b830
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloud-tasks/createHttpTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function main(
// Send create task request.
console.log('Sending task:');
console.log(task);
const request = {parent, task};
const request = {parent: parent, task: task};
const [response] = await client.createTask(request);
console.log(`Created task ${response.name}`);
}
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/createHttpTaskWithToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function main(
console.log('Sending task:');
console.log(task);
// Send create task request.
const request = {parent, task};
const request = {parent: parent, task: task};
const [response] = await client.createTask(request);
const name = response.name;
console.log(`Created task ${name}`);
Expand Down
2 changes: 1 addition & 1 deletion cloud-tasks/createTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function main(
console.log('Sending task:');
console.log(task);
// Send create task request.
const request = {parent, task};
const request = {parent: parent, task: task};
const [response] = await client.createTask(request);
const name = response.name;
console.log(`Created task ${name}`);
Expand Down

0 comments on commit 8e6b830

Please sign in to comment.