Skip to content

Commit

Permalink
🔥 Remove TODO comments in AccountController
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan-A-Pesh committed Feb 29, 2024
1 parent 55f5b7b commit 78fee6d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions backend/controllers/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,6 @@ class AccountController {
* @param res The Express response object
*/
public static async banUser(req: express.Request, res: express.Response) {
// TODO: Ban/unban a user
/**
* VALIDATION
* * Check if the user is an admin
* * Validate the user ID
*
* PROCESS
* * Ban/unban the user
*
* RESPONSE
* * Send a success message
* * Send an error message if the user ID is invalid
*/
const { userId, isBanned } = req.body;

try {
Expand Down

0 comments on commit 78fee6d

Please sign in to comment.