diff --git a/application/admin.student.go b/application/admin.student.go index aba21ff..4d9cf21 100644 --- a/application/admin.student.go +++ b/application/admin.student.go @@ -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"}) @@ -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) {