src/utils/auth.utils.js
/**
   *
   * @param {obj} id
   * @returns {boolean} check if accomodation exist and belongs to the user
   */
@param {obj} id
@returns {boolean} check if accomodation exist and belongs to the user
@param { obj } id @returns { boolean } check if accomodation exist and belongs to the user
static async isAccommodation(id) {
    try {
      const isAccommodation = await UserRepository.findAccommodationById(id);
      return isAccommodation || undefined;
    } catch (error) {
      throw new Error(error);
    }
  }
static async isAccommodation ( id ) { try { const isAccommodation = await UserRepository . findAccommodationById ( id ) ; return isAccommodation || undefined ; } catch ( error ) { throw new Error ( error ) ; } }
@param {obj} id
 @returns {boolean} check if accomodation exist and belongs to the user
@param { obj } id @returns { boolean } check if accomodation exist and belongs to the user