fix: Adjusted set in webhook to go empty when enabled false

This commit is contained in:
Davidson Gomes
2023-07-07 13:12:51 -03:00
parent 24712c4c2d
commit 27aa0add4e
6 changed files with 20 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ export const instanceNameSchema: JSONSchema7 = {
webhook_by_events: { type: 'boolean' },
events: {
type: 'array',
minItems: 1,
minItems: 0,
items: {
type: 'string',
enum: [
@@ -825,7 +825,7 @@ export const webhookSchema: JSONSchema7 = {
enabled: { type: 'boolean', enum: [true, false] },
events: {
type: 'array',
minItems: 1,
minItems: 0,
items: {
type: 'string',
enum: [