Skip to content

Commit

Permalink
Fix org's createTeam status code, fixes #128
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Aug 19, 2014
1 parent dc2aa95 commit 6546cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/octonode/org.js

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

2 changes: 1 addition & 1 deletion src/octonode/org.coffee
Expand Up @@ -76,7 +76,7 @@ class Org
createTeam: (options, cb) ->
@client.post "/orgs/#{@name}/teams", options, (err, s, b, h) ->
return cb(err) if err
if s isnt 200 then cb(new Error('Org createTeam error')) else cb null, b, h
if s isnt 201 then cb(new Error('Org createTeam error')) else cb null, b, h

# Export module
module.exports = Org

0 comments on commit 6546cba

Please sign in to comment.