Skip to content

Commit

Permalink
GitHub #34 - Fix create user when a username is not provided to client
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk committed Dec 15, 2015
1 parent b155acc commit fb76db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Command/User/CreateUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class CreateUser {
return client.getTransport()
.sendRequest(options)
.then(result => {
return (new GetUser(result.username)).invoke(client);
this.user.attributes.set('username', result.username);

return this.user;
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "huejay",
"version": "0.15.0",
"version": "0.15.1",
"description": "Philips Hue client for Node.js",
"keywords": [
"hue",
Expand Down

0 comments on commit fb76db2

Please sign in to comment.