Skip to content

Commit

Permalink
update tasks samples to support new api version (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-at-google authored and JustinBeckwith committed Sep 21, 2018
1 parent 31adcbf commit 24ee5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud-tasks/createTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ function createTask(project, location, queue, options) {
const task = {
appEngineHttpRequest: {
httpMethod: 'POST',
relativeUrl: '/log_payload',
relativeUri: '/log_payload',
},
};

if (options.payload !== undefined) {
task.appEngineHttpRequest.payload = Buffer.from(options.payload).toString(
task.appEngineHttpRequest.body = Buffer.from(options.payload).toString(
'base64'
);
}
Expand Down

0 comments on commit 24ee5df

Please sign in to comment.