Skip to content

Commit 24ee5df

Browse files
bart-at-googleJustinBeckwith
authored andcommitted
update tasks samples to support new api version (#83)
1 parent 31adcbf commit 24ee5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud-tasks/createTask.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ function createTask(project, location, queue, options) {
3939
const task = {
4040
appEngineHttpRequest: {
4141
httpMethod: 'POST',
42-
relativeUrl: '/log_payload',
42+
relativeUri: '/log_payload',
4343
},
4444
};
4545

4646
if (options.payload !== undefined) {
47-
task.appEngineHttpRequest.payload = Buffer.from(options.payload).toString(
47+
task.appEngineHttpRequest.body = Buffer.from(options.payload).toString(
4848
'base64'
4949
);
5050
}

0 commit comments

Comments
 (0)