@webiny/api-headless-cms-ddb-es 5.19.0-beta.0 → 5.19.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -131,12 +131,8 @@ const createInitialQueryValue = args => {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
} // we do not allow not published and not latest
|
|
134
|
-
else
|
|
135
|
-
throw new _error.default(`Cannot call Elasticsearch query
|
|
136
|
-
where
|
|
137
|
-
});
|
|
138
|
-
} else if (where.latest === false) {
|
|
139
|
-
throw new _error.default(`Cannot call Elasticsearch query with "latest" set at false.`, "ELASTICSEARCH_UNSUPPORTED_QUERY", {
|
|
134
|
+
else {
|
|
135
|
+
throw new _error.default(`Cannot call Elasticsearch query when not setting "published" or "latest".`, "ELASTICSEARCH_UNSUPPORTED_QUERY", {
|
|
140
136
|
where
|
|
141
137
|
});
|
|
142
138
|
} //
|
|
@@ -627,7 +627,7 @@ const createEntriesStorageOperations = params => {
|
|
|
627
627
|
model
|
|
628
628
|
});
|
|
629
629
|
|
|
630
|
-
if (publishedStorageEntry) {
|
|
630
|
+
if (publishedStorageEntry && publishedStorageEntry.id !== entry.id) {
|
|
631
631
|
/**
|
|
632
632
|
* If there is a `published` entry already, we need to set it to `unpublished`. We need to
|
|
633
633
|
* execute two updates: update the previously published entry's status and the published entry record.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-ddb-es",
|
|
3
|
-
"version": "5.19.0-beta.
|
|
3
|
+
"version": "5.19.0-beta.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@webiny/api-headless-cms",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/runtime": "7.16.3",
|
|
26
|
-
"@webiny/api-headless-cms": "5.19.0-beta.
|
|
27
|
-
"@webiny/api-upgrade": "5.19.0-beta.
|
|
28
|
-
"@webiny/db-dynamodb": "5.19.0-beta.
|
|
29
|
-
"@webiny/error": "5.19.0-beta.
|
|
30
|
-
"@webiny/handler": "5.19.0-beta.
|
|
31
|
-
"@webiny/handler-aws": "5.19.0-beta.
|
|
32
|
-
"@webiny/handler-db": "5.19.0-beta.
|
|
33
|
-
"@webiny/plugins": "5.19.0-beta.
|
|
34
|
-
"@webiny/utils": "5.19.0-beta.
|
|
26
|
+
"@webiny/api-headless-cms": "5.19.0-beta.4",
|
|
27
|
+
"@webiny/api-upgrade": "5.19.0-beta.4",
|
|
28
|
+
"@webiny/db-dynamodb": "5.19.0-beta.4",
|
|
29
|
+
"@webiny/error": "5.19.0-beta.4",
|
|
30
|
+
"@webiny/handler": "5.19.0-beta.4",
|
|
31
|
+
"@webiny/handler-aws": "5.19.0-beta.4",
|
|
32
|
+
"@webiny/handler-db": "5.19.0-beta.4",
|
|
33
|
+
"@webiny/plugins": "5.19.0-beta.4",
|
|
34
|
+
"@webiny/utils": "5.19.0-beta.4",
|
|
35
35
|
"dataloader": "2.0.0",
|
|
36
36
|
"dynamodb-toolbox": "0.3.5",
|
|
37
37
|
"jsonpack": "1.1.5",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"@elastic/elasticsearch": "7.12.0",
|
|
48
48
|
"@shelf/jest-elasticsearch": "^1.0.0",
|
|
49
49
|
"@types/jsonpack": "^1.1.0",
|
|
50
|
-
"@webiny/api-dynamodb-to-elasticsearch": "^5.19.0-beta.
|
|
51
|
-
"@webiny/api-elasticsearch": "^5.19.0-beta.
|
|
52
|
-
"@webiny/cli": "^5.19.0-beta.
|
|
53
|
-
"@webiny/project-utils": "^5.19.0-beta.
|
|
50
|
+
"@webiny/api-dynamodb-to-elasticsearch": "^5.19.0-beta.4",
|
|
51
|
+
"@webiny/api-elasticsearch": "^5.19.0-beta.4",
|
|
52
|
+
"@webiny/cli": "^5.19.0-beta.4",
|
|
53
|
+
"@webiny/project-utils": "^5.19.0-beta.4",
|
|
54
54
|
"jest": "^26.6.3",
|
|
55
55
|
"jest-dynalite": "^3.2.0",
|
|
56
56
|
"jest-environment-node": "^26.6.2",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"build": "yarn webiny run build",
|
|
70
70
|
"watch": "yarn webiny run watch"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d115a87beb3ad3979c91a4ddf14082883be241f0"
|
|
73
73
|
}
|