Skip to content

Commit

Permalink
#0: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jul 4, 2024
1 parent 2b18a03 commit ad26a0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion @types/lib/metadataTypes/User.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/metadataTypes/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ class User extends MetadataType {
// run update
const buResponse = await this.client.soap.configure('AccountUser', configs);
// process response

if (buResponse.OverallStatus === 'OK') {
// get userIdNameMap
const userIdNameMap = {};
Expand Down Expand Up @@ -689,7 +688,6 @@ class User extends MetadataType {

const metadata = this.parseResponseBody(resultsBulk);
// get BUs that each users have access to

if (resultsBulk?.Results?.length > 0) {
if (!singleRetrieve) {
Util.logger.info(
Expand All @@ -700,7 +698,6 @@ class User extends MetadataType {
const chunkSize = 100;
this.userIdBuMap = {};
Util.logger.info(` - Caching dependent Metadata: Business Unit assignments`);

for (let i = 0; i < resultsBulk?.Results?.length; i += chunkSize) {
if (i > 0) {
Util.logger.info(
Expand Down Expand Up @@ -830,7 +827,6 @@ class User extends MetadataType {
fields,
requestParamsInstalledPackage
);

if (Array.isArray(resultsBatch?.Results)) {
Util.logger.debug(
Util.getGrayMsg(` - found ${resultsBatch?.Results.length} installed packages`)
Expand Down

0 comments on commit ad26a0d

Please sign in to comment.