Skip to content

Commit 7610dab

Browse files
fix: addressed comments
1 parent ea30495 commit 7610dab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/migration/postMigrate.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ export class PostMigrate extends BaseMigrationTool {
147147
while (attempts < maxAttempts) {
148148
await new Promise((resolve) => setTimeout(resolve, 20000));
149149
const metadataService = new OmniStudioMetadataCleanupService(this.connection, this.messages);
150-
const isMetadataEnabled = await metadataService.hasCleanOmniStudioMetadataTables(); //Check is the config tables are populated or not.
151-
if (!isMetadataEnabled) {
150+
const isConfigTablesEmpty = await metadataService.hasCleanOmniStudioMetadataTables(); //Check is the config tables are populated or not.
151+
if (!isConfigTablesEmpty) {
152+
// If the config tables are populated, means the metadata is enabled.
152153
Logger.log(this.messages.getMessage('omniStudioSettingsMetadataEnabled'));
153154
break;
154155
}

0 commit comments

Comments
 (0)