@cumulus/db 20.0.1 → 20.1.1
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.
|
@@ -24,7 +24,7 @@ const infixMapping = {
|
|
|
24
24
|
class StatsSearch extends BaseSearch_1.BaseSearch {
|
|
25
25
|
constructor(event, type) {
|
|
26
26
|
const { field, ...queryStringParameters } = event.queryStringParameters || {};
|
|
27
|
-
super({ queryStringParameters: { ...queryStringParameters, limit: null } }, type);
|
|
27
|
+
super({ queryStringParameters: { ...queryStringParameters, limit: 'null' } }, type);
|
|
28
28
|
this.field = field ?? 'status';
|
|
29
29
|
}
|
|
30
30
|
/**
|
package/dist/search/queries.js
CHANGED
|
@@ -187,7 +187,7 @@ const convertSort = (type, queryStringParameters) => {
|
|
|
187
187
|
return Object.keys(queryParam ?? {}).map((key) => sortArray.push({ column: key, order }));
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
if (limit !== null) {
|
|
190
|
+
if (limit !== 'null') {
|
|
191
191
|
sortArray.push({ column: defaultSortColumn, order: defaultSortOrder });
|
|
192
192
|
}
|
|
193
193
|
return sortArray;
|
|
@@ -214,7 +214,7 @@ const convertQueryStringToDbQueryParameters = (type, queryStringParameters) => {
|
|
|
214
214
|
const { limit, page, prefix, infix, fields, estimateTableRowCount, includeFullRecord, } = queryStringParameters;
|
|
215
215
|
const dbQueryParameters = {};
|
|
216
216
|
dbQueryParameters.page = Number.parseInt(page ?? '1', 10);
|
|
217
|
-
if (limit !== null) {
|
|
217
|
+
if (limit !== 'null') {
|
|
218
218
|
dbQueryParameters.limit = Number.parseInt(limit ?? '10', 10);
|
|
219
219
|
dbQueryParameters.offset = (dbQueryParameters.page - 1) * dbQueryParameters.limit;
|
|
220
220
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/db",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.1.1",
|
|
4
4
|
"description": "Utilities for working with the Cumulus DB",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-secrets-manager": "^3.621.0",
|
|
36
|
-
"@cumulus/aws-client": "20.
|
|
37
|
-
"@cumulus/common": "20.
|
|
38
|
-
"@cumulus/errors": "20.
|
|
39
|
-
"@cumulus/logger": "20.
|
|
40
|
-
"@cumulus/message": "20.
|
|
41
|
-
"@cumulus/types": "20.
|
|
36
|
+
"@cumulus/aws-client": "20.1.1",
|
|
37
|
+
"@cumulus/common": "20.1.1",
|
|
38
|
+
"@cumulus/errors": "20.1.1",
|
|
39
|
+
"@cumulus/logger": "20.1.1",
|
|
40
|
+
"@cumulus/message": "20.1.1",
|
|
41
|
+
"@cumulus/types": "20.1.1",
|
|
42
42
|
"crypto-random-string": "^3.2.0",
|
|
43
43
|
"is-valid-hostname": "1.0.2",
|
|
44
44
|
"knex": "2.4.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/uuid": "^8.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "dde772911627dd96b944a8eca65fdff388848ec6"
|
|
54
54
|
}
|