@optimiser/common 1.0.252 → 1.0.253
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/dist/lib/utility.js +7 -4
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -392,13 +392,13 @@ function GetPageFieldData(pageName, db, mdb, msp_d, next, callback) {
|
|
|
392
392
|
};
|
|
393
393
|
pageData.Fields.splice(0, 0, idObject);
|
|
394
394
|
//By Kashish : To handle System Info Fields in Grid
|
|
395
|
-
if (!pageData.Fields.find(function (x) { return x.Name == 'CreatedBy'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName) && pageData.ObjectName != 'Task')
|
|
395
|
+
if (!pageData.Fields.find(function (x) { return x.Name == 'CreatedBy'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName) && pageData.ObjectName != 'Task' && pageData.ObjectName != 'Session')
|
|
396
396
|
pageData.Fields.push(createdByObj);
|
|
397
|
-
if (!pageData.Fields.find(function (x) { return x.Name == 'CreatedDate'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName))
|
|
397
|
+
if (!pageData.Fields.find(function (x) { return x.Name == 'CreatedDate'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName) && pageData.ObjectName != 'Session')
|
|
398
398
|
pageData.Fields.push(createdDateObj);
|
|
399
|
-
if (!pageData.Fields.find(function (x) { return x.Name == 'ModifiedBy'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName))
|
|
399
|
+
if (!pageData.Fields.find(function (x) { return x.Name == 'ModifiedBy'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName) && pageData.ObjectName != 'Session')
|
|
400
400
|
pageData.Fields.push(modByObj);
|
|
401
|
-
if (!pageData.Fields.find(function (x) { return x.Name == 'ModifiedDate'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName))
|
|
401
|
+
if (!pageData.Fields.find(function (x) { return x.Name == 'ModifiedDate'; }) && !['CompanySessionLogList', 'CompanyTransactionLogsList'].includes(pageData.PageName) && pageData.ObjectName != 'Session')
|
|
402
402
|
pageData.Fields.push(modDateObj);
|
|
403
403
|
}
|
|
404
404
|
if (pageData.Fields && pageData.Type == "ObjectDetail") {
|
|
@@ -2621,6 +2621,9 @@ function SignoutUserFromAllDevices(options, dbMaster, redisClient) {
|
|
|
2621
2621
|
options.callback({ message: 'error', error: err });
|
|
2622
2622
|
}
|
|
2623
2623
|
if (data) {
|
|
2624
|
+
if (options.Platform) {
|
|
2625
|
+
data = data.filter(function (x) { return (x.Platform == options.Platform); });
|
|
2626
|
+
}
|
|
2624
2627
|
for (var i = 0; i < data.length; i++) {
|
|
2625
2628
|
try {
|
|
2626
2629
|
redisClient.del(data[i].SessionKey.toString());
|