메소드 이름 변경

This commit is contained in:
현성필
2023-10-17 14:07:10 +09:00
parent 14ad4b5b39
commit 8860f5d234
2 changed files with 2 additions and 2 deletions
@@ -53,7 +53,7 @@ public class ApiRequestMgmtController {
@PostMapping("/mgmt/collections/update.do")
public ResponseEntity<String> updateApiCollection(@RequestBody ApiCollectionDTO dto) {
ApiCollection updated = apiRequestMapper.map(dto);
apiRequestMgmtService.updateApiCollection(updated.getId(), updated);
apiRequestMgmtService.updateApiCollectionName(updated.getId(), updated);
return ResponseEntity.ok(SUCCESS);
}
@@ -47,7 +47,7 @@ public class ApiRequestMgmtService {
apiCollectionRepository.save(collection);
}
public void updateApiCollection(String id, ApiCollection updated) {
public void updateApiCollectionName(String id, ApiCollection updated) {
ApiCollection collection = apiCollectionRepository.findById(id).orElseThrow(() -> new NotFoundException(String.format(API_COLLECTION_NOT_FOUND, id)));
collection.setName(updated.getName());
apiCollectionRepository.save(collection);