return list of domains exactly

This commit is contained in:
AJ ONeal 2017-02-28 14:55:04 -07:00
parent 1e0d129b8a
commit eff1fd1127
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ OAUTH3.api['domains.list'] = function (providerUri, opts) {
+ '/api/com.daplie.domains/accounts/' + session.token.sub + '/registrations'
, session: session
}).then(function (res) {
return res.data;
return res.data.registrations || res.data.domains || res.data;
});
};