We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab94108 + b1571c2 commit 7f22803Copy full SHA for 7f22803
1 file changed
src/controllers/bom.controller.ts
@@ -241,7 +241,8 @@ export class BomController {
241
@inject(RestBindings.Http.RESPONSE) res: Response,
242
): Promise<Bom|Response> {
243
if (bom.yaml) {
244
- await this.serviceHelper.validateBomModuleYaml(bom.yaml, bom.service_id);
+ const fullBom = await this.bomRepository.findById(id);
245
+ await this.serviceHelper.validateBomModuleYaml(bom.yaml, fullBom.service_id);
246
}
247
await this.bomRepository.updateById(id, bom);
248
return this.bomRepository.findById(id);
0 commit comments