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