Skip to content

Commit 2249155

Browse files
committed
test
1 parent 2373695 commit 2249155

3 files changed

Lines changed: 23 additions & 11 deletions

File tree

.vscode/launch.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4-
{
5-
"type": "node",
6-
"request": "attach",
7-
"name": "Attach to Remote",
8-
"address": "demo2red0.openrpa.dk",
9-
"port": 5858,
10-
"localRoot": "${workspaceFolder}/OpenFlowNodeRED/dist/",
11-
"remoteRoot": "data"
12-
},
134
{
145
"args": [],
156
"cwd": "${workspaceRoot}",
@@ -58,6 +49,24 @@
5849
"sourceMaps": true,
5950
"stopOnEntry": false,
6051
"type": "node"
61-
}
52+
},
53+
{
54+
"type": "node",
55+
"request": "attach",
56+
"name": "Attach to demo2red0",
57+
"address": "demo2red0.openrpa.dk",
58+
"port": 5858,
59+
"localRoot": "${workspaceFolder}/OpenFlowNodeRED/dist/",
60+
"remoteRoot": "/data"
61+
},
62+
{
63+
"type": "node",
64+
"request": "attach",
65+
"name": "Attach to demo2",
66+
"address": "demo2.openrpa.dk",
67+
"port": 5858,
68+
"localRoot": "${workspaceFolder}/dist/",
69+
"remoteRoot": "/data"
70+
},
6271
]
6372
}

OpenFlow/src/DatabaseConnection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export class DatabaseConnection {
8080
}
8181
if (!top) { top = 500; }
8282
if (!skip) { skip = 0; }
83+
if (collectionname == "openrpa") {
84+
arr = await this.db.collection(collectionname).find(query).limit(top).skip(skip).toArray();
85+
}
8386
if (projection != null) {
8487
arr = await this.db.collection(collectionname).find(_query).project(projection).sort(mysort).limit(top).skip(skip).toArray();
8588
} else {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.99
1+
0.0.100

0 commit comments

Comments
 (0)