Skip to content

Commit 9db363b

Browse files
committed
fix
1 parent 03b3933 commit 9db363b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

components/data_stores/actions/get-record-or-create/get-record-or-create.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "data_stores-get-record-or-create",
55
name: "Get record (or create one if not found)",
66
description: "Get a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/) or create one if it doesn't exist.",
7-
version: "0.0.12",
7+
version: "0.0.13",
88
type: "action",
99
props: {
1010
app,
@@ -68,15 +68,15 @@ export default {
6868
summary = `Successfully added a new record with the key, \`${this.key}\`.`;
6969
}
7070

71+
response = parsedValue;
72+
7173
// Include TTL information in the return value if it was set
7274
if (this.ttl) {
73-
return {
75+
response = {
7476
value: parsedValue,
7577
ttl: this.ttl,
7678
};
7779
}
78-
79-
response = parsedValue;
8080
}
8181

8282
$.export("$summary", summary);

components/data_stores/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/data_stores",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"description": "Pipedream Data Stores Components",
55
"main": "data_stores.app.js",
66
"keywords": [

0 commit comments

Comments
 (0)