From eff1fd11272472e8f6d03ac8b897a9853810672e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 28 Feb 2017 14:55:04 -0700 Subject: [PATCH] return list of domains exactly --- oauth3.domains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth3.domains.js b/oauth3.domains.js index d9320ff..f38ae75 100644 --- a/oauth3.domains.js +++ b/oauth3.domains.js @@ -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; }); };