src/repositories/userRepository.js
/**
   *
   * @param {string} managerEmail
   * @returns {obj} record is object if managerEmail found or null if not
   */
@param {string} managerEmail
@returns {obj} record is object if managerEmail found or null if not
@param { string } managerEmail @returns { obj } record is object if managerEmail found or null if not
async findByLineManager(managerEmail) {
    try {
      const record = await this.db.findAll({
        where: { line_manager: managerEmail },
        attributes: ['id']
      });
      return record;
    } catch (error) {
      throw new Error(error);
    }
  }
async findByLineManager ( managerEmail ) { try { const record = await this . db . findAll ( { where : { line_manager : managerEmail } , attributes : [ 'id' ] } ) ; return record ; } catch ( error ) { throw new Error ( error ) ; } }
@param {string} managerEmail
 @returns {obj} record is object if managerEmail found or null if not
@param { string } managerEmail @returns { obj } record is object if managerEmail found or null if not