fixed spelling mistake
This commit is contained in:
@ -113,7 +113,7 @@ public class MockController {
|
||||
Researcher output = researchesService.saveResearcher(jojoResearcherAccount);
|
||||
|
||||
Research jojoResearch = new Research("Graphs : Advanced Search Algorithms",output,new Date(0),
|
||||
PaperType.Article,"here",null,"english",
|
||||
PaperType.Article,"here.pdf",null,"english",
|
||||
Access.OpenSource,"IT","This Article's title speaks for itself \n We'll discuss about advanced Graph search Algorithms");
|
||||
|
||||
Research restrictedResearch = new Research("just another Name",output,new Date(1111111111),
|
||||
|
@ -229,7 +229,7 @@ public class ResearchController {
|
||||
|
||||
///////
|
||||
//views part
|
||||
@PostMapping("/addView{url}")
|
||||
@PostMapping("/addView/{url}")
|
||||
public ResponseEntity<ResearchDTO> addView(@PathVariable String url){
|
||||
Research research = researchesServ.getResearchByUrl(url);
|
||||
if (research ==null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);
|
||||
|
@ -194,6 +194,6 @@ public class ResearchesService {
|
||||
|
||||
public Research addView(Research research) {
|
||||
research.setViews(research.getViews()+1);
|
||||
articleRepo.save(research);
|
||||
return articleRepo.save(research);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user