@constructor-io/constructorio-node 3.10.3 → 3.10.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.
- package/package.json +1 -1
- package/src/modules/tasks.js +4 -4
- package/src/.DS_Store +0 -0
package/package.json
CHANGED
package/src/modules/tasks.js
CHANGED
|
@@ -44,7 +44,7 @@ class Tasks {
|
|
|
44
44
|
*
|
|
45
45
|
* @function getAllTasks
|
|
46
46
|
* @param {object} parameters - Additional parameters for task details
|
|
47
|
-
* @param {number} [parameters.
|
|
47
|
+
* @param {number} [parameters.numResultsPerPage = 20] - The number of tasks to return - maximum value 100
|
|
48
48
|
* @param {number} [parameters.page = 1] - The page of results to return
|
|
49
49
|
* @param {string} [parameters.startDate] - The start date of results to return - YYYY-MM-DD
|
|
50
50
|
* @param {string} [parameters.endDate] - The end date of results to return - YYYY-MM-DD
|
|
@@ -62,11 +62,11 @@ class Tasks {
|
|
|
62
62
|
const { signal } = controller;
|
|
63
63
|
|
|
64
64
|
if (parameters) {
|
|
65
|
-
const { num_results_per_page: numResultsPerPage, page, startDate, endDate, status } = parameters;
|
|
65
|
+
const { num_results_per_page: numResultsPerPageOld, numResultsPerPage, page, startDate, endDate, status } = parameters;
|
|
66
66
|
|
|
67
67
|
// Pull number of results per page from parameters
|
|
68
|
-
if (numResultsPerPage) {
|
|
69
|
-
queryParams.num_results_per_page = numResultsPerPage;
|
|
68
|
+
if (numResultsPerPageOld || numResultsPerPage) {
|
|
69
|
+
queryParams.num_results_per_page = numResultsPerPageOld || numResultsPerPage;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// Pull page from parameters
|
package/src/.DS_Store
DELETED
|
Binary file
|