Skip to content

Commit a7665fc

Browse files
type ticket id as mongoid
1 parent d8fb59c commit a7665fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service/src/tickets/thread/_dto/thread.dto.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import { IdfsPartDto } from '~/_common/dto/parts/idfs.part.dto'
66
import { IdnamePartDto } from '~/_common/dto/parts/idname.part.dto'
77
import { ThreadType, ThreadTypeList } from '~/tickets/thread/_enum/thread-type.enum'
88
import { MetadataDto } from '~/_common/abstracts/dto/metadata.dto'
9+
import { Types } from 'mongoose'
910

1011
export class ThreadCreateDto extends MetadataDto {
1112
@IsMongoId()
1213
@ApiProperty()
13-
public ticketId: string
14+
public ticketId: Types.ObjectId
1415

1516
@IsNumber()
1617
@IsEnum(ThreadTypeList)

0 commit comments

Comments
 (0)