Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
fix: account verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Rohith committed Nov 8, 2018
1 parent 355457f commit b10bdb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports.initAccount = async () => {
try {
const DoAPI = new DigitalOcean(accesstoken, 5);
spinner.start('Verifying your account...');
const { account } = await DoAPI.account();
const {
body: { account }
} = await DoAPI.account();

if (account) {
spinner.succeed('Account verified!');
config.set('do_api_access_token', accesstoken);
Expand Down

0 comments on commit b10bdb3

Please sign in to comment.