rest
This commit is contained in:
@@ -48,34 +48,9 @@ export class RestaurantsService {
|
|||||||
return restaurant;
|
return restaurant;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getRestaurantSpecification(slug: string): Promise<RestaurantSpecificationDto> {
|
async getRestaurantSpecification(slug: string) {
|
||||||
const restaurant = await this.findBySlug(slug);
|
const restaurant = await this.findBySlug(slug);
|
||||||
|
return restaurant;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async update(id: string, dto: UpdateRestaurantDto): Promise<Restaurant> {
|
async update(id: string, dto: UpdateRestaurantDto): Promise<Restaurant> {
|
||||||
|
|||||||
Reference in New Issue
Block a user