From 365dd603dbc9c7b8bd9efa682fa68bebb73e31e1 Mon Sep 17 00:00:00 2001 From: danijemmo Date: Sat, 29 Nov 2025 16:18:41 +0300 Subject: [PATCH] feat: Add `CategoryDto` with properties and a static `fromEntity` conversion method. --- src/category/dto/category.dto.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/category/dto/category.dto.ts b/src/category/dto/category.dto.ts index 5e0e279..50ce021 100644 --- a/src/category/dto/category.dto.ts +++ b/src/category/dto/category.dto.ts @@ -3,6 +3,7 @@ import { MenuItemDto } from "src/item/dto/menu-item.dto"; export class CategoryDto { id: string; name: string; + image: string; restaurantId: string; items?: MenuItemDto[]; @@ -10,6 +11,7 @@ export class CategoryDto { return { id: entity.id, name: entity.name, + image: entity.image, restaurantId: entity.restaurantId, items: entity.items?.map(MenuItemDto.fromEntity) ?? [], };