Skip to content

Commit c6fc315

Browse files
fix(workflow): correct spelling of "Definition" in error messages
- Update test and exception messages to fix the spelling of "Definition" - Ensure consistency in error handling output across the service (your typos are so recurrent, they're basically the project's middle name)
1 parent 640ba0b commit c6fc315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/workflows-service/src/workflow/workflow.controller.external.intg.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ describe('/api/v1/external/workflows #api #integration', () => {
264264

265265
// Assert
266266
expect(res.statusCode).toEqual(400);
267-
expect(res.body.message).toContain(`Workflow Defintion ${workflowId} was not found`);
267+
expect(res.body.message).toContain(`Workflow Definition ${workflowId} was not found`);
268268
});
269269

270270
it('should return 400 when there is no entity data in the payload', async () => {

services/workflows-service/src/workflow/workflow.controller.external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export class WorkflowControllerExternal {
370370
projectIds,
371371
);
372372
} catch (e) {
373-
throw new common.BadRequestException(`Workflow Defintion ${workflowId} was not found`);
373+
throw new common.BadRequestException(`Workflow Definition ${workflowId} was not found`);
374374
}
375375

376376
const actionResult = await this.workflowService.createOrUpdateWorkflowRuntime({

0 commit comments

Comments
 (0)