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), 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) } } }