From 018d9ad41dc4f8324badd0d98c48fc14470209ff Mon Sep 17 00:00:00 2001 From: danijemmo Date: Tue, 2 Dec 2025 11:37:44 +0300 Subject: [PATCH] feat: add Restaurant DTO and remove prisma generate from the build script --- package.json | 2 +- src/restaurant/dto/restaurant.dto.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9067d1a..b986611 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "private": true, "license": "UNLICENSED", "scripts": { - "build": "prisma generate && nest build", + "build": "nest build", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", diff --git a/src/restaurant/dto/restaurant.dto.ts b/src/restaurant/dto/restaurant.dto.ts index a5ea08b..7e75ed8 100644 --- a/src/restaurant/dto/restaurant.dto.ts +++ b/src/restaurant/dto/restaurant.dto.ts @@ -6,6 +6,7 @@ export class RestaurantDto { slug: string; description?: string; logo?: string; + template?: string; categories?: CategoryDto[]; createdAt?: Date; @@ -16,6 +17,7 @@ export class RestaurantDto { slug: entity.slug, description: entity.description ?? undefined, logo: entity.logo ?? undefined, + template: entity.template ?? undefined, categories: entity.categories?.map(CategoryDto.fromEntity) ?? [], createdAt: entity.createdAt ? new Date(entity.createdAt) : undefined, };