Skip to content

Commit

Permalink
Docs: Fixed an error in some JS code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
EzeKoren committed Mar 22, 2022
1 parent 571002b commit 1247922
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,12 @@ const execTask = (task_id, task_secret_key) => {
})

res.on('end', () => {
console.log(JSON.parse(data))
resolve(JSON.parse(data))
})
})

req.on('error', error => {
console.error(error)
reject(error)
})

req.write(JSON.stringify(body))
Expand Down Expand Up @@ -552,12 +552,12 @@ const execTask = (task_id, access_token) => {
})

res.on('end', () => {
console.log(JSON.parse(data))
resolve(JSON.parse(data))
})
})

req.on('error', error => {
console.error(error)
reject(error)
})

req.write(JSON.stringify(body))
Expand Down

0 comments on commit 1247922

Please sign in to comment.