fix: unqi ip and spam keyword
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { ApiProperty } from '@nestjs/swagger'
|
||||
import { Transform, Type } from 'class-transformer'
|
||||
import {
|
||||
ArrayUnique,
|
||||
IsBoolean,
|
||||
IsEmail,
|
||||
IsInt,
|
||||
IsIP,
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
@@ -87,9 +89,11 @@ export class CommentOptionsDto {
|
||||
|
||||
@IsString({ each: true })
|
||||
@IsOptional()
|
||||
@ArrayUnique()
|
||||
spamKeywords?: string[]
|
||||
|
||||
@IsString({ each: true })
|
||||
@IsIP(undefined, { each: true })
|
||||
@ArrayUnique()
|
||||
@IsOptional()
|
||||
blockIps?: string[]
|
||||
@IsOptional()
|
||||
|
||||
Reference in New Issue
Block a user