src/repositories/userRepository.js
/**
   *
   * @param {obj} data
   * @returns {obj} record is object if managerEmail found or null if not
   */
@param {obj} data
@returns {obj} record is object if managerEmail found or null if not
@param { obj } data @returns { obj } record is object if managerEmail found or null if not
async findByAccommodationIdAndRoomId(data) {
    try {
      const record = await this.Room.findOne({
        where: { accommodation_id: data.accommodation_id, id: data.id }
      });
      return record;
    } catch (error) {
      throw new Error(error);
    }
  }
async findByAccommodationIdAndRoomId ( data ) { try { const record = await this . Room . findOne ( { where : { accommodation_id : data . accommodation_id , id : data . id } } ) ; return record ; } catch ( error ) { throw new Error ( error ) ; } }
@param {obj} data
 @returns {obj} record is object if managerEmail found or null if not
@param { obj } data @returns { obj } record is object if managerEmail found or null if not