Skip to content

Commit 45acd2a

Browse files
committed
decrypt watch messages
1 parent bf735c1 commit 45acd2a

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

OpenFlow/src/WebSocketServerClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { WebSocketServer } from "./WebSocketServer";
99
import { Span } from "@opentelemetry/api";
1010
import { Logger } from "./Logger";
1111
import { WebServer } from "./WebServer";
12+
import { DatabaseConnection } from "./DatabaseConnection";
1213
interface IHashTable<T> {
1314
[key: string]: T;
1415
}
@@ -501,7 +502,7 @@ export class WebSocketServerClient {
501502
const msg: SocketMessage = SocketMessage.fromcommand("watchevent");
502503
const q = new WatchEventMessage();
503504
q.id = stream.id;
504-
q.result = next;
505+
q.result = Config.db.decryptentity(next);
505506
msg.data = JSON.stringify(q);
506507
me._socketObject.send(msg.tojson());
507508
} catch (error) {

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.2.74",
3+
"version": "1.2.75",
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": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.74
1+
1.2.75

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.2.74",
3+
"version": "1.2.75",
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)