Skip to content

Commit

Permalink
Use correct response status
Browse files Browse the repository at this point in the history
and return just the data not a circular response object.
  • Loading branch information
jbosse committed Jul 10, 2024
1 parent 5c70e2b commit a0908c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/planview-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class PlanviewClient {
}

#parseResponse(result) {
if (result.status === 200 && !!result.data.id) {
if (result.status === 201 && !!result.data.id) {
return {
success: true,
data: result.data
}
} else {
return {
success: false,
result
data: result.data
}
}
}
Expand Down

0 comments on commit a0908c7

Please sign in to comment.