From d36f178941e572b9a62cf09936ff006fa94a0ca8 Mon Sep 17 00:00:00 2001 From: yash Date: Sun, 19 May 2024 18:48:13 +0530 Subject: [PATCH] rfac: updateProject (backend) --- .../activityleaderboard/controllers/ProjectController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }