-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add delete button and UnRecruit logic #142
Conversation
qu-bit1
commented
Sep 6, 2023
- Deletes students from an event (Delete all & delete individually)
- Implemented UnRecruit logic in both the delete functions
fixing linting issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right flow, try to make one api EXACTLY INVERSE of register student api. For consistency and readability.
If u need more context lmk
application/admin.student.go
Outdated
ctx.JSON(http.StatusBadRequest, gin.H{"error": "Invalid r ID"}) | ||
return | ||
} | ||
if err = rc.UnRecruitStudent(ctx, studentID, rcID); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should only be invoked if the event is "Recruited" or "PPO" right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes fixing that and a few more things