Skip to content

Commit

Permalink
Merge pull request #181 from Abhimanyu-dev/main
Browse files Browse the repository at this point in the history
Updated Student Delete Handlers
  • Loading branch information
yashlm authored Nov 7, 2024
2 parents dba6cf9 + e58a548 commit 7cf683c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions application/admin.student.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@ func deleteStudentFromEventHandler(ctx *gin.Context) {
return
}

var req postStudentsByEventRequest
err = ctx.ShouldBindJSON(&req)
if err != nil {
ctx.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}

studentID, err := util.ParseUint(ctx.Param("sid"))
if err != nil {
ctx.JSON(http.StatusBadRequest, gin.H{"error": "Invalid student ID"})
Expand Down Expand Up @@ -210,13 +203,6 @@ func deleteAllStudentsFromEventHandler(ctx *gin.Context) {
return
}

var req postStudentsByEventRequest
err = ctx.ShouldBindJSON(&req)
if err != nil {
ctx.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}

sids, _ := getStudentIDByEventID(ctx, eventID)

if evnt.Name == string(PIOPPOACCEPTED) || evnt.Name == string(Recruited) {
Expand Down

0 comments on commit 7cf683c

Please sign in to comment.