Skip to content

Commit

Permalink
[5.2] MACT-95: Update the account data due to the 'accounts' response…
Browse files Browse the repository at this point in the history
… changes (#186)

* MACT-95: Update the account data due to the 'accounts' response changes

* Remove unncessary code

---------

Co-authored-by: Guillermo Gutiérrez <guillegr123@gmail.com>
  • Loading branch information
pcandia and guillegr123 committed Mar 14, 2023
1 parent e20d2e6 commit 40ecfb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ define(function(require) {
}
], callback);
}, accountId),
mergeResults = function(data) {
return _.chain(data.metadata).pick(['billing_mode', 'enabled', 'superduper_admin', 'wnm_allow_additions']).merge(data.data).value();
},
fetchData = function(callback) {
monster.parallel({
account: function(next) {
Expand All @@ -1023,7 +1026,7 @@ define(function(require) {
accountId: accountId
},
success: _.flow(
_.partial(_.get, _, 'data'),
mergeResults,
_.partial(next, null)
)
});
Expand Down

0 comments on commit 40ecfb7

Please sign in to comment.