src/repositories/DestinationRepo.js
/**
   * Gets all destinations
   * @returns {object} destination object.
   */
Gets all destinations
@returns {object} destination object.
Gets all destinations @returns { object } destination object .
static async FetchAllDestinations() {
    const result = Location.findAll({
      attributes: ['destination', 'visit_count'],
      order: [
        ['visit_count', 'DESC'],
      ],
      limit: 10
    });
    return result;
  }
static async FetchAllDestinations ( ) { const result = Location . findAll ( { attributes : [ 'destination' , 'visit_count' ] , order : [ [ 'visit_count' , 'DESC' ] , ] , limit : 10 } ) ; return result ; }
Gets all destinations
 @returns {object} destination object.
Gets all destinations @returns { object } destination object .