diff --git a/src/modules/restaurants/providers/restaurants.service.ts b/src/modules/restaurants/providers/restaurants.service.ts index 29a1cc9..7bc7e8e 100644 --- a/src/modules/restaurants/providers/restaurants.service.ts +++ b/src/modules/restaurants/providers/restaurants.service.ts @@ -48,34 +48,9 @@ export class RestaurantsService { return restaurant; } - async getRestaurantSpecification(slug: string): Promise { + async getRestaurantSpecification(slug: string) { const restaurant = await this.findBySlug(slug); - - const specification: RestaurantSpecificationDto = { - id: restaurant.id, - name: restaurant.name, - slug: restaurant.slug, - logo: restaurant.logo, - address: restaurant.address, - menuColor: restaurant.menuColor, - latitude: restaurant.latitude, - longitude: restaurant.longitude, - serviceArea: restaurant.serviceArea, - establishedYear: restaurant.establishedYear, - phoneNumber: restaurant.phoneNumber, - phone: restaurant.phone, - instagram: restaurant.instagram, - telegram: restaurant.telegram, - whatsapp: restaurant.whatsapp, - description: restaurant.description, - seoTitle: restaurant.seoTitle, - seoDescription: restaurant.seoDescription, - tagNames: restaurant.tagNames, - images: restaurant.images, - vat: restaurant.vat, - }; - - return specification; + return restaurant; } async update(id: string, dto: UpdateRestaurantDto): Promise {