Skip to content

Commit 7f22803

Browse files
NoeSamailleGitHub Enterprise
authored andcommitted
Merge pull request #22 from gsi-labs/patch/solution-builder
Patch bom fix
2 parents ab94108 + b1571c2 commit 7f22803

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/controllers/bom.controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ export class BomController {
241241
@inject(RestBindings.Http.RESPONSE) res: Response,
242242
): Promise<Bom|Response> {
243243
if (bom.yaml) {
244-
await this.serviceHelper.validateBomModuleYaml(bom.yaml, bom.service_id);
244+
const fullBom = await this.bomRepository.findById(id);
245+
await this.serviceHelper.validateBomModuleYaml(bom.yaml, fullBom.service_id);
245246
}
246247
await this.bomRepository.updateById(id, bom);
247248
return this.bomRepository.findById(id);

0 commit comments

Comments
 (0)