Skip to content

Commit 83f5ed2

Browse files
chore: resolved comments
1 parent 5d90d5a commit 83f5ed2

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

messages/assess.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@
216216
"packagesHaveSameValue": "Both TheFirstInstalledOmniPackage and InstalledIndustryPackage have the same value.",
217217
"packagesHaveDifferentValue": "Both the InstalledIndustryPackage and TheFirstInstalledOmniPackage have different values.",
218218
"failedToCheckPackagesValue": "Failed to check the value of packages in Omni Interaction Configuration.",
219-
"isStandardDataModelOrg": "The org is on standard data model: %s",
220-
"isFoundationPackageOrg": "The org is on Omnistudio Foundation package: %s",
221219
"packageDetails": "Your org contains only the TheFirstInstalledOmniPackage Omni Interaction Configuration.",
222220
"orgUsecaseDetails": "The org is on %s data model with %s ",
223-
"globalAutoNumberUnSupportedInOmnistudioPackage": "Omni Global Auto Number is not supported in Omnistudio package orgs."
221+
"globalAutoNumberUnSupportedInOmnistudioPackage": "Omni Global Auto Number is not supported in Omnistudio Foundation package orgs."
224222
}

messages/migrate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,7 @@
319319
"packagesHaveSameValue": "Both TheFirstInstalledOmniPackage and InstalledIndustryPackage have the same value.",
320320
"packagesHaveDifferentValue": "Both the InstalledIndustryPackage and TheFirstInstalledOmniPackage have different values.",
321321
"failedToCheckPackagesValue": "Failed to check the value of packages in Omni Interaction Configuration.",
322-
"isStandardDataModelOrg": "The org is on standard data model: %s",
323-
"isFoundationPackageOrg": "The org is on Omnistudio Foundation package: %s",
324322
"packageDetails": "Your org contains only the TheFirstInstalledOmniPackage Omni Interaction Configuration.",
325323
"orgUsecaseDetails": "The Org is on %s data model with %s ",
326-
"globalAutoNumberUnSupportedInOmnistudioPackage": "Omni Global Auto Number is not supported in Omnistudio package orgs."
324+
"globalAutoNumberUnSupportedInOmnistudioPackage": "Omni Global Auto Number is not supported in Omnistudio Foundation package orgs."
327325
}

src/utils/orgPreferences.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ export class OrgPreferences {
224224

225225
return false;
226226
} catch (error) {
227-
Logger.error('Error checking foundation package');
227+
const errMsg = error instanceof Error ? error.message : String(error);
228+
Logger.error(`Error checking foundation package : ${errMsg}`);
228229
return false;
229230
}
230231
}

src/utils/orgUtils/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ export class OrgUtils {
372372
);
373373

374374
const isFoundationPackage: boolean = await OrgPreferences.isFoundationPackage(connection);
375-
Logger.logVerbose(messages.getMessage('isStandardDataModelOrg', [omniStudioOrgPermissionEnabled]));
376-
Logger.logVerbose(messages.getMessage('isFoundationPackageOrg', [isFoundationPackage]));
377375

378376
const orgDataModel = omniStudioOrgPermissionEnabled ? this.standardDataModel : this.customDataModel;
379377
const orgPackageType = isFoundationPackage

src/utils/resultsbuilder/GlobalAutoNumberAssessmentReporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class GlobalAutoNumberAssessmentReporter {
4040
if (isFoundationPackage) {
4141
return {
4242
...baseReport,
43-
notSupportedMessage: 'Omni Global Auto Number is not supported in Omnistudio package orgs.',
43+
notSupportedMessage: 'Omni Global Auto Number is not supported in Omnistudio Foundation package orgs.',
4444
};
4545
}
4646

0 commit comments

Comments
 (0)