Skip to content

Commit

Permalink
fix : template 이름 저장 안되는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nookcoder committed Nov 21, 2023
1 parent d741dd5 commit f0ff911
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ private List<TemplatePreviewDto> mapToTemplatePreviewDto(List<AwsBluePrint> all)
private void saveAwsBluePrint(AwsBluePrintDto dto, Member member, String templateName, ProvisionStatus status, String keyname) throws IOException {
AwsBluePrint blueprint = new AwsBluePrint();
blueprint.setUuid(dto.getUuid());
blueprint.setName(templateName);
blueprint.setName(dto.getName());
blueprint.setDescription(dto.getDescription());
blueprint.setDownloadCount(0);
blueprint.setStatus(status);
blueprint.setMember(member);
blueprint.setScope(dto.getScope());
blueprint.setKeyName(keyname);
blueprint.setIsTemplate(true);
blueprint.setTemplateName(templateName);
templateRepository.save(blueprint);
}
}

0 comments on commit f0ff911

Please sign in to comment.