refactor: remove tag entity (#17462)

This commit is contained in:
Jason Rasmussen
2025-04-08 10:52:54 -04:00
committed by GitHub
parent 75bc32b47b
commit b6c5a03533
12 changed files with 92 additions and 50 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsHexColor, IsNotEmpty, IsString } from 'class-validator';
import { TagEntity } from 'src/entities/tag.entity';
import { TagItem } from 'src/types';
import { Optional, ValidateHexColor, ValidateUUID } from 'src/validation';
@@ -52,7 +51,7 @@ export class TagResponseDto {
color?: string;
}
export function mapTag(entity: TagItem | TagEntity): TagResponseDto {
export function mapTag(entity: TagItem): TagResponseDto {
return {
id: entity.id,
parentId: entity.parentId ?? undefined,