Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(webhook): show a recordable lastError in the failure example

Yudhi Armyndharis86250005673c
diff --git a/src/modules/webhook/dto/webhook.dto.ts b/src/modules/webhook/dto/webhook.dto.ts
index 7701faa2b..756aedd26 100644
--- a/src/modules/webhook/dto/webhook.dto.ts
+++ b/src/modules/webhook/dto/webhook.dto.ts
@@ -407,7 +407,7 @@ export class WebhookDeliveryFailureDto {
})
lastStatusCode?: number | null;
- @ApiProperty({ example: 'connect ECONNREFUSED 10.0.0.1:443' })
+ @ApiProperty({ example: 'fetch failed' })
lastError!: string;
@ApiProperty({ type: String, format: 'date-time', description: 'When the failure was first recorded.' })