Skip to content

Commit

Permalink
stringify json response
Browse files Browse the repository at this point in the history
  • Loading branch information
minsis committed Oct 12, 2024
1 parent a15a862 commit 1691afe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/models/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ControllerApi {
return this.client
.get(`/api/v2/${template_type}/${template_id}/launch`)
.then(response => {
core.debug(`Response Sucessful: ${response.data}`)
core.debug(`Response Sucessful: ${JSON.stringify(response.data)}`)
return response.data
})
.catch((error: any) => {

Check warning on line 86 in src/models/api.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unexpected any. Specify a different type
Expand Down Expand Up @@ -110,7 +110,7 @@ class ControllerApi {
return this.client
.get(`/api/v2/${job_type}/${job_id}/`)
.then(response => {
core.debug(`Response Sucessful: ${response.data}`)
core.debug(`Response Sucessful: ${JSON.stringify(response.data)}`)
// Status values: running, successful, failed
return {
started: response.data.started,
Expand Down Expand Up @@ -144,7 +144,7 @@ class ControllerApi {
}
})
.then(response => {
core.debug(`Response Sucessful: ${response.data}`)
core.debug(`Response Sucessful: ${JSON.stringify(response.data)}`)
return response.data
})
.catch(error => {
Expand All @@ -160,7 +160,7 @@ class ControllerApi {
return this.client
.get(`/api/v2/workflow_jobs/${job_id}/workflow_nodes/`)
.then(response => {
core.debug(`Response Sucessful: ${response.data}`)
core.debug(`Response Sucessful: ${JSON.stringify(response.data)}`)
return response.data.results
})
.catch(error => {
Expand All @@ -180,7 +180,7 @@ class ControllerApi {
return this.client
.post(`/api/v2/${template_type}/${template_id}/launch`, payload)
.then(response => {
core.debug(`Response Sucessful: ${response.data}`)
core.debug(`Response Sucessful: ${JSON.stringify(response.data)}`)
return response.data.id
})
.catch(error => {
Expand Down

0 comments on commit 1691afe

Please sign in to comment.