Skip to content

Commit f863657

Browse files
committed
Fix the typo worflowId to workflowId
1 parent baf33f5 commit f863657

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/shared/modules/global/challenge.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ChallengeData {
2222
}
2323

2424
export class WorkflowData {
25-
worflowId: string;
25+
workflowId: string;
2626
ref: string;
2727
params: Record<string, any>;
2828
}

src/shared/modules/global/gitea.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ export class GiteaService {
8686
challengeId: string,
8787
): Promise<void> {
8888
this.logger.log(
89-
`Running workflow: ${workflow.worflowId} with ref: ${workflow.ref}`,
89+
`Running workflow: ${workflow.workflowId} with ref: ${workflow.ref}`,
9090
);
9191
try {
9292
const response = await this.giteaClient.repos.actionsDispatchWorkflow(
9393
this.giteaOrg,
9494
challengeId,
95-
workflow.worflowId,
95+
workflow.workflowId,
9696
{
9797
ref: workflow.ref,
9898
inputs: workflow.params,
@@ -102,7 +102,7 @@ export class GiteaService {
102102
this.logger.log(`Workflow dispatched successfully: ${response.status}`);
103103
} catch (error) {
104104
this.logger.error(
105-
`Error dispatching workflow ${workflow.worflowId}: ${error.message}`,
105+
`Error dispatching workflow ${workflow.workflowId}: ${error.message}`,
106106
);
107107
throw error;
108108
}

src/shared/modules/global/submission-scan-complete.orchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class SubmissionScanCompleteOrchestrator {
5454
try {
5555
await this.giteaService.runDispatchWorkflow(workflow, challenge.id);
5656
} catch (error) {
57-
const errorMessage = `Error processing workflow: ${workflow.worflowId}. Error: ${error.message}.`;
57+
const errorMessage = `Error processing workflow: ${workflow.workflowId}. Error: ${error.message}.`;
5858
this.logger.error(errorMessage, error);
5959
// don't rethrow error as we want to continue processing other workflows
6060
allErrors += `${errorMessage}. `;

0 commit comments

Comments
 (0)