From 4e3e15546087131f1e3fa50c59a454f02c8adacd Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 5 Aug 2018 06:09:00 +0000 Subject: [PATCH] chimney --- lib/extensions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/extensions/index.js b/lib/extensions/index.js index d07c8fc..5f05f62 100644 --- a/lib/extensions/index.js +++ b/lib/extensions/index.js @@ -131,7 +131,7 @@ DB.accounts.add = function (obj) { if (obj.id) { // TODO more checks DB._perms.push(obj); - } else if (obj.email) { + } else if ('email' === obj.nodes[0].type || obj.email) { obj.email = undefined; DB._perms.push(obj); } @@ -978,7 +978,7 @@ app.get('/api/telebit.cloud/account', function (req, res) { result.ports.length = 0; grants.forEach(function (account) { if (!account) { return; } - console.log('grants.forEach.account: ', account); + //console.log('XXXX grants.forEach.account: ', account); account.domains.forEach(function (d) { domainsMap[d.name] = d; });