diff --git a/backend/src/main/java/com/mdgspace/activityleaderboard/controllers/ProjectController.java b/backend/src/main/java/com/mdgspace/activityleaderboard/controllers/ProjectController.java index d44ad79..9e3d0ec 100644 --- a/backend/src/main/java/com/mdgspace/activityleaderboard/controllers/ProjectController.java +++ b/backend/src/main/java/com/mdgspace/activityleaderboard/controllers/ProjectController.java @@ -188,7 +188,7 @@ public ResponseEntity updateProject(@Valid @RequestBody AddProjectRequest upd return ResponseEntity.badRequest().body("User is not the admin or manager of the org"); } - Boolean isValidLink=githubService.isValidLink(addProjectRequest.getLink(),user.getAccesstoken()); + Boolean isValidLink=githubService.isValidLink(updateProjectRequest.getLink(),user.getAccesstoken()); if(!isValidLink){ return ResponseEntity.badRequest().body("Invalid link provided by the user"); }