From d77272cadb9926a13de7865fe80decc0b0495fca Mon Sep 17 00:00:00 2001 From: David Stone Date: Fri, 29 Aug 2025 16:06:14 +0100 Subject: [PATCH 1/2] Fix typo in condition example --- docs/GETTING_STARTED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index ba01af491..37109e69f 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -325,7 +325,7 @@ Conditions bring logic to the form, when assigned to a page they make the page " // 2. `RelativeDate` - relative date for date-based conditions // The `value` of a `RelativeDate` should be an object with a listId and itemId keys pointing to the list and list item - "type": "ListItemRef", + "type": "RelativeDate", "value": { "period": 1, // Numeric amount of the time period "unit": "weeks", // Time unit (days, weeks, months, years), From d3b5dab09b18cc03dc5540e3fc197c5aa7999b6c Mon Sep 17 00:00:00 2001 From: David Stone Date: Fri, 29 Aug 2025 16:08:12 +0100 Subject: [PATCH 2/2] Fix typo in Save and return docs --- docs/PLUGIN_OPTIONS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/PLUGIN_OPTIONS.md b/docs/PLUGIN_OPTIONS.md index bdd2b64e4..1208586c2 100644 --- a/docs/PLUGIN_OPTIONS.md +++ b/docs/PLUGIN_OPTIONS.md @@ -128,9 +128,9 @@ await server.register({ return savedState || null }, - sessionPersister: async (key, state, request) => { + sessionPersister: async (state, request) => { // Save state to database/API - await saveUserSession(key, state, request) + await saveUserSession(state, request) } } }