1 parent
63a4e693e3
commit
679757ccfa
2 files changed
+3
No files matched your search
@@ -2,6 +2,7 @@ import { ApiProperty } from '@nestjs/swagger';
|
||||
import { BooleanString } from '@waha/nestjs/validation/BooleanString';
|
||||
import { Transform, Type } from 'class-transformer';
|
||||
import {
|
||||
IsArray,
|
||||
IsBoolean,
|
||||
IsOptional,
|
||||
IsString,
|
||||
@@ -81,6 +82,7 @@ export class NowebConfig {
|
||||
export class SessionConfig {
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => WebhookConfig)
|
||||
@IsArray()
|
||||
@IsOptional()
|
||||
webhooks?: WebhookConfig[];
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ export class WebhookConfig {
|
||||
})
|
||||
@ValidateNested()
|
||||
@Type(() => CustomHeader)
|
||||
@IsArray()
|
||||
@IsOptional()
|
||||
customHeaders?: CustomHeader[];
|
||||
}
|
||||
Reference in new issue
Block a user