todo
This commit is contained in:
@@ -13,11 +13,6 @@ export class CreateCategoryDto {
|
||||
@ApiPropertyOptional({ example: true })
|
||||
isActive?: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@ApiPropertyOptional({ example: 'restaurant-ulid' })
|
||||
restId?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@ApiPropertyOptional({ example: 'https://cdn.example.com/avatar.png' })
|
||||
|
||||
@@ -18,7 +18,8 @@ export class CategoryService {
|
||||
const data: RequiredEntityData<Category> = {
|
||||
title: dto.title,
|
||||
isActive: dto.isActive ?? true,
|
||||
restId: dto.restId,
|
||||
//TODO
|
||||
restId: '01KA35CFFN0F6VA04DF0W6KCE3',
|
||||
avatarUrl: dto.avatarUrl,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user