Skip to content

Commit 9ab4aed

Browse files
fix(apify-set-key-value-store-record) 31: list only named KVS (#16)
1 parent 9a17254 commit 9ab4aed

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

components/apify/actions/get-kvs-record/get-kvs-record.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default {
1313
propDefinition: [
1414
apify,
1515
"keyValueStoreId",
16+
() => ({
17+
unnamed: false,
18+
}),
1619
],
1720
},
1821
key: {

components/apify/actions/set-key-value-store-record/set-key-value-store-record.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ export default {
55
name: "Set Key-Value Store Record",
66
description:
77
"Create or update a record in an Apify Key-Value Store. Supports strings, numbers, booleans, null, arrays, and objects. Automatically infers content type (JSON vs. plain text).",
8-
version: "0.2.1",
8+
version: "0.2.2",
99
type: "action",
1010
props: {
1111
apify,
1212
keyValueStoreId: {
1313
propDefinition: [
1414
apify,
1515
"keyValueStoreId",
16+
() => ({
17+
unnamed: false,
18+
}),
1619
],
1720
optional: false,
1821
},

components/apify/apify.app.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ export default {
99
type: "string",
1010
label: "Key-Value Store Id",
1111
description: "The Id of the key-value store.",
12-
async options({ page }) {
12+
async options({
13+
page, unnamed = true,
14+
}) {
1315
const { items } = await this.listKeyValueStores({
1416
offset: LIMIT * page,
1517
limit: LIMIT,
16-
unnamed: true,
18+
unnamed,
1719
});
1820

1921
return items.map(({

0 commit comments

Comments
 (0)