diff --git a/components/data_stores/actions/get-record-or-create/get-record-or-create.mjs b/components/data_stores/actions/get-record-or-create/get-record-or-create.mjs index 69cb121f8ee17..4b587a539d1c4 100644 --- a/components/data_stores/actions/get-record-or-create/get-record-or-create.mjs +++ b/components/data_stores/actions/get-record-or-create/get-record-or-create.mjs @@ -4,7 +4,7 @@ export default { key: "data_stores-get-record-or-create", name: "Get record (or create one if not found)", description: "Get a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/) or create one if it doesn't exist.", - version: "0.0.12", + version: "0.0.13", type: "action", props: { app, @@ -68,15 +68,15 @@ export default { summary = `Successfully added a new record with the key, \`${this.key}\`.`; } + response = parsedValue; + // Include TTL information in the return value if it was set if (this.ttl) { - return { + response = { value: parsedValue, ttl: this.ttl, }; } - - response = parsedValue; } $.export("$summary", summary); diff --git a/components/data_stores/package.json b/components/data_stores/package.json index fc5105ba0c37c..92a4176e2eda0 100644 --- a/components/data_stores/package.json +++ b/components/data_stores/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/data_stores", - "version": "0.1.7", + "version": "0.1.8", "description": "Pipedream Data Stores Components", "main": "data_stores.app.js", "keywords": [