Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(validation): say the import cleans what the body pipe lets through
Yudhi Armyndharis996983f384a4
diff --git a/src/config/app-validation.ts b/src/config/app-validation.tsindex c9c3cef43..1918937f4 100644--- a/src/config/app-validation.ts+++ b/src/config/app-validation.ts@@ -32,7 +32,8 @@ export const GLOBAL_VALIDATION_OPTIONS: ValidationPipeOptions = {/*** Refuses a request body holding U+0000 anywhere. PostgreSQL rejects it in every text and varchar value* and bound parameter, so it failed the lookup or write behind the route as a 500 while SQLite took it.- * The restore is exempt: it writes backup rows verbatim, and a SQLite backup may hold one in a message.+ * The restore is exempt: a SQLite backup may hold one in a message, and the importers drop it from the+ * same free-text columns the entities clean.*/export class NulBodyPipe implements PipeTransform {transform(value: unknown, { type, metatype }: ArgumentMetadata): unknown {