Skip to content

Commit

Permalink
remove rejected meetings from mentors endpoint to get mymeeting
Browse files Browse the repository at this point in the history
  • Loading branch information
MAES-Pyramids committed Sep 10, 2023
1 parent 96f11ca commit c47650a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/meeting.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exports.getMyMeetings = catchAsyncError(async (req, res, next) => {

const meetingsQuery =
res.locals.userType === 'mentor'
? { mentor: userId, status: { $ne: 'not-selected' } }
? { mentor: userId, status: { $nin: ['not-selected', 'rejected'] } }
: { user: userId };
const populateOptions =
res.locals.userType === 'mentor'
Expand Down

0 comments on commit c47650a

Please sign in to comment.