Skip to content

Commit

Permalink
improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
janithlahirukariyawasam committed Nov 27, 2023
1 parent 0838c23 commit 9854e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/routes/admin/mentee/mentee.route.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import express from 'express'
import { requireAuth } from '../../../controllers/auth.controller'
import {
getAllMenteeEmails,
} from '../../../controllers/admin/email.controller'
import { getAllMenteeEmails } from '../../../controllers/admin/email.controller'

const menteeRouter = express.Router()

menteeRouter.get('/emails/', /*requireAuth,*/ getAllMenteeEmails)
menteeRouter.get('/emails/', requireAuth, getAllMenteeEmails)

export default menteeRouter
2 changes: 1 addition & 1 deletion src/services/admin/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export const getAllMenteeEmailsService = async (
return {
statusCode: 200,
emails,
message: 'All mentee emails with status ' + (status || 'undefined')
message: 'All mentee emails with status ' + (status ?? 'undefined')
}
}

0 comments on commit 9854e12

Please sign in to comment.