Skip to content

Commit e61d1d1

Browse files
committed
#1522: fixed the spelling in the httpException error
1 parent 5c300a0 commit e61d1d1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/src/services/projects.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ export default class ProjectsService {
620620
}
621621
});
622622

623-
if (!!materialType) throw new HttpException(400, `The following material type alraedy exists: ${name}`);
623+
if (!!materialType) throw new HttpException(400, `The following material type already exists: ${name}`);
624624

625625
const newMaterialType = await prisma.material_Type.create({
626626
data: {

src/backend/tests/projects.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ describe('Projects', () => {
267267
vi.spyOn(prisma.material_Type, 'findUnique').mockResolvedValue(toolMaterial);
268268

269269
await expect(ProjectsService.createMaterialType('NERSoftwareTools', batman)).rejects.toThrow(
270-
new HttpException(400, 'The following material type alraedy exists: NERSoftwareTools')
270+
new HttpException(400, 'The following material type already exists: NERSoftwareTools')
271271
);
272272
});
273273

0 commit comments

Comments
 (0)