Skip to content

Commit 7618ecc

Browse files
committed
fix issue with msg.skip
1 parent c8e7b9a commit 7618ecc

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.3.7",
3+
"version": "1.3.8",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

OpenFlowNodeRED/src/nodered/nodes/api_nodes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ export class api_get {
152152
if (!NoderedUtil.IsNullUndefinded(msg.query)) { query = msg.query; }
153153
if (!NoderedUtil.IsNullUndefinded(msg.projection)) { projection = msg.projection; }
154154
if (!NoderedUtil.IsNullUndefinded(msg.orderby)) { orderby = msg.orderby; }
155-
if (!NoderedUtil.IsNullEmpty(msg.top)) { top = parseInt(msg.top); }
156-
if (!NoderedUtil.IsNullEmpty(msg.skip)) { skip = parseInt(msg.skip); }
157155
if (NoderedUtil.IsNullEmpty(top)) { top = 500; }
158156
if (NoderedUtil.IsNullEmpty(skip)) { skip = 0; }
157+
if (!NoderedUtil.IsNullEmpty(msg.top)) { top = parseInt(msg.top); }
158+
if (!NoderedUtil.IsNullEmpty(msg.skip)) { skip = parseInt(msg.skip); }
159159
if (!NoderedUtil.IsNullEmpty(msg.resultfield)) { resultfield = msg.resultfield; }
160-
top = parseInt(this.config.top as any);
161-
skip = parseInt(this.config.skip as any);
160+
top = parseInt(top as any);
161+
skip = parseInt(skip as any);
162162

163163
if (!NoderedUtil.IsNullEmpty(orderby) && NoderedUtil.IsString(orderby)) {
164164
if (orderby.indexOf("{") > -1) {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.7
1+
1.3.8

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.3.7",
3+
"version": "1.3.8",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)