Skip to content

Commit 6689782

Browse files
committed
#1521: Boolean cast to try to fix test
1 parent 49d5337 commit 6689782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export default class ProjectsService {
612612
}
613613
});
614614

615-
if (manufacturer) throw new HttpException(400, `${name} already exists as a manufacturer!`);
615+
if (!!manufacturer) throw new HttpException(400, `${name} already exists as a manufacturer!`);
616616

617617
const newManufacturer = await prisma.manufacturer.create({
618618
data: { name, dateCreated: new Date(), creatorId: submitter.userId }

0 commit comments

Comments
 (0)