return list of domains exactly
This commit is contained in:
parent
1e0d129b8a
commit
eff1fd1127
|
@ -12,7 +12,7 @@ OAUTH3.api['domains.list'] = function (providerUri, opts) {
|
||||||
+ '/api/com.daplie.domains/accounts/' + session.token.sub + '/registrations'
|
+ '/api/com.daplie.domains/accounts/' + session.token.sub + '/registrations'
|
||||||
, session: session
|
, session: session
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
return res.data;
|
return res.data.registrations || res.data.domains || res.data;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue