@codefresh-io/service-base 3.0.20 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/infra/config.js +6 -1
- package/package.json +1 -1
package/infra/config.js
CHANGED
|
@@ -116,7 +116,12 @@ base.logger = {
|
|
|
116
116
|
try {
|
|
117
117
|
const authEntity = getAuthenticatedEntity().toJson({ partial: true });
|
|
118
118
|
if (_.get(authEntity, 'activeAccount')) {
|
|
119
|
-
|
|
119
|
+
// eslint-disable-next-line max-len
|
|
120
|
+
authEntity.activeAccount = _.pick(authEntity.activeAccount, ['type', 'id', 'name', 'activeAccount.name', 'activeAccount.id']);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (_.get(authEntity, 'account')) {
|
|
124
|
+
authEntity.account = _.pick(authEntity.account, ['type', 'id', 'name', 'account.name', 'account.id']);
|
|
120
125
|
}
|
|
121
126
|
return authEntity;
|
|
122
127
|
} catch (err) {
|