This commit is contained in:
2025-12-13 12:57:21 +03:30
parent 9d9de98c03
commit 212f6c44f7
@@ -48,34 +48,9 @@ export class RestaurantsService {
return restaurant;
}
async getRestaurantSpecification(slug: string): Promise<RestaurantSpecificationDto> {
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<Restaurant> {