Skip to content

Commit

Permalink
Fix adding env with email option
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrze committed Nov 21, 2023
1 parent 93b4c6a commit f59b308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 4.12.8
* Bug: fix adding env with `--email` option

## 4.12.7
* Bug: Fixed success message for `env add` command
* Bug: fix storing env in file
Expand Down
2 changes: 1 addition & 1 deletion bin/pos-cli-env-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const checkParams = params => {
const login = async (email, password, url) => {
return Portal.login(email, password, url)
.then(response => {
if (response) Promise.resolve(response[0].token);
if (response) return Promise.resolve(response[0].token);
})
}

Expand Down

0 comments on commit f59b308

Please sign in to comment.