chatbot-nc 2.1.18 → 2.1.19
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.
|
@@ -97,7 +97,7 @@ class HashService {
|
|
|
97
97
|
async deepUnHashedObject(request, properties) {
|
|
98
98
|
try {
|
|
99
99
|
let result = {};
|
|
100
|
-
for (const key
|
|
100
|
+
for (const key of Object.keys(request)) {
|
|
101
101
|
let requestKey = request[key];
|
|
102
102
|
// let timeZone = httpContext.get("TimeZone");
|
|
103
103
|
if (properties.includes(key) && (typeof requestKey === "string")) {
|
|
@@ -141,7 +141,7 @@ class HashService {
|
|
|
141
141
|
async deepHashedObject(response, properties, dateproperties) {
|
|
142
142
|
try {
|
|
143
143
|
let result = {};
|
|
144
|
-
for (const key
|
|
144
|
+
for (const key of Object.keys(response)) {
|
|
145
145
|
if (properties.includes(key)) {
|
|
146
146
|
const unHashedValue = response[key];
|
|
147
147
|
if (unHashedValue !== null && unHashedValue !== "" && unHashedValue != 0 && (typeof (unHashedValue) === 'number')) {
|
|
@@ -114,7 +114,7 @@ export class HashService {
|
|
|
114
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
115
|
try {
|
|
116
116
|
let result = {};
|
|
117
|
-
for (const key
|
|
117
|
+
for (const key of Object.keys(request)) {
|
|
118
118
|
let requestKey = request[key];
|
|
119
119
|
// let timeZone = httpContext.get("TimeZone");
|
|
120
120
|
if (properties.includes(key) && (typeof requestKey === "string")) {
|
|
@@ -162,7 +162,7 @@ export class HashService {
|
|
|
162
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
163
|
try {
|
|
164
164
|
let result = {};
|
|
165
|
-
for (const key
|
|
165
|
+
for (const key of Object.keys(response)) {
|
|
166
166
|
if (properties.includes(key)) {
|
|
167
167
|
const unHashedValue = response[key];
|
|
168
168
|
if (unHashedValue !== null && unHashedValue !== "" && unHashedValue != 0 && (typeof (unHashedValue) === 'number')) {
|