Skip to content

Commit 2e1002a

Browse files
committed
Fix weird error with --subgroups then there are no subgroups kriskbx#19
1 parent 69ebc10 commit 2e1002a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/owner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ class owner extends Base {
5656
return new Promise((resolve, reject) => {
5757
this.get(`groups`)
5858
.then(groups => {
59-
if (groups.body.length === 0) return reject();
59+
if (groups.body.length === 0) return resolve();
6060
let filtered = groups.body.filter(u => this.groups.map(g => g.id).indexOf(u.parent_id) !== -1);
61-
if (filtered.length === 0) return reject();
61+
if (filtered.length === 0) return resolve();
6262
this.groups = this.groups.concat(filtered);
6363
resolve();
6464
})

0 commit comments

Comments
 (0)