text: const { reduceErrorsJoi } = require('../../utils/error');
  const { meetingIdParamValidation } = require('../../validators/meetingsValidator');
  
  module.exports.validateMeetingIdParam = (req, res, next) => {
    const { value, error } = meetingIdParamValidation.validate(req.query);
    if (error) {
      return res
        .status(400)
        .json({ success: false, payload: reduceErrorsJoi(error.details) });
    }
    req.meetingId = value.meetingId || null;
    next();
  };
  