Skip to content

Commit 19b832c

Browse files
committed
@W-17233341 - Minor changes for tests
1 parent 2cd57c5 commit 19b832c

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

src/commands/data-seeding/generate/index.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ export default class DataSeedingGenerate extends SfCommand<DataSeedingGenerateRe
101101

102102
const options: PollingClient.Options = {
103103
poll: async (): Promise<StatusResult> => {
104-
const { jwt: jwtValue } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
105-
const response = await pollSeedStatus(jobId,jwtValue);
104+
const { jwt: jwtValueNew } = await initiateJWTMint(
105+
srcOrgInstUrl,
106+
srcAccessToken,
107+
tgtOrgInstUrl,
108+
tgtAccessToken
109+
);
110+
const response = await pollSeedStatus(jobId, jwtValueNew);
106111

107112
mso.goto(getStage(response.step), {
108113
startTime: response.execution_start_time,
@@ -153,8 +158,8 @@ export default class DataSeedingGenerate extends SfCommand<DataSeedingGenerateRe
153158
throw err;
154159
}
155160
} else {
156-
const { jwt: jwtValue } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
157-
const response = await pollSeedStatus(jobId,jwtValue);
161+
const { jwt: jwtValueNew } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
162+
const response = await pollSeedStatus(jobId, jwtValueNew);
158163

159164
const mso = getSeedGenerateMso({
160165
jsonEnabled: this.jsonEnabled(),

src/commands/data-seeding/generate/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class DataSeedingGenerateReport extends SfCommand<DataSeedingRepo
4343

4444
if (!jobId) throw new SfError('No job ID provided or found in cache');
4545

46-
const response = await pollSeedStatus(jobId,"");
46+
const response = await pollSeedStatus(jobId, '');
4747

4848
const data = {
4949
jobId,

src/commands/data-seeding/migrate/index.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@ export default class DataSeedingMigrate extends SfCommand<DataSeedingMigrateResu
102102

103103
const options: PollingClient.Options = {
104104
poll: async (): Promise<StatusResult> => {
105-
const { jwt: jwtValue } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
106-
const response = await pollSeedStatus(jobId,jwtValue);
105+
const { jwt: jwtValueNew } = await initiateJWTMint(
106+
srcOrgInstUrl,
107+
srcAccessToken,
108+
tgtOrgInstUrl,
109+
tgtAccessToken
110+
);
111+
const response = await pollSeedStatus(jobId, jwtValueNew);
107112

108113
mso.goto(getStage(response.step), {
109114
startTime: response.execution_start_time,
@@ -156,8 +161,8 @@ export default class DataSeedingMigrate extends SfCommand<DataSeedingMigrateResu
156161
throw err;
157162
}
158163
} else {
159-
const { jwt: jwtValue } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
160-
const response = await pollSeedStatus(jobId,jwtValue);
164+
const { jwt: jwtValueNew } = await initiateJWTMint(srcOrgInstUrl, srcAccessToken, tgtOrgInstUrl, tgtAccessToken);
165+
const response = await pollSeedStatus(jobId, jwtValueNew);
161166

162167
const mso = getSeedMigrateMso({
163168
jsonEnabled: this.jsonEnabled(),

src/commands/data-seeding/migrate/report.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getSeedMigrateMso, getSeedMigrateStage as getStage } from '../../../uti
1212
import { DataSeedingReportResult } from '../../../utils/types.js';
1313
import { MigrateRequestCache } from '../../../utils/cache.js';
1414

15-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url)
15+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
1616
const messages = Messages.loadMessages('@salesforce/plugin-data-seeding', 'data-seeding.migrate.report');
1717

1818
export default class DataSeedingMigrateReport extends SfCommand<DataSeedingReportResult> {
@@ -40,7 +40,7 @@ export default class DataSeedingMigrateReport extends SfCommand<DataSeedingRepor
4040

4141
if (!jobId) throw new SfError('No job ID provided or found in cache');
4242

43-
const response = await pollSeedStatus(jobId,"");
43+
const response = await pollSeedStatus(jobId, '');
4444

4545
const data = {
4646
jobId,
@@ -77,4 +77,4 @@ export default class DataSeedingMigrateReport extends SfCommand<DataSeedingRepor
7777
...data,
7878
};
7979
}
80-
}
80+
}

0 commit comments

Comments
 (0)