Fix destructive update behavior in n8n cookie operations

Avoid clearing existing values when optional fields are left at their
defaults: only send privacyPolicyUrl/maxAgeSeconds when truthy, filter
empty entries from gcmConsentTypes, and constrain consentExpiryDays to
positive integers on create.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-01 20:11:37 +04:00
parent 1996545125
commit 1650b26fa9
4 changed files with 10 additions and 8 deletions

View File

@@ -82,6 +82,9 @@ export const description: INodeProperties[] = [
operation: ['create'],
},
},
typeOptions: {
minValue: 1,
},
default: 365,
description: 'Number of days before consent expires',
required: true,