tango-app-api-infra 3.1.34-beta.5 → 3.1.34-beta.7
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/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-infra",
|
|
3
|
-
"version": "3.1.34-beta.
|
|
3
|
+
"version": "3.1.34-beta.7",
|
|
4
4
|
"description": "infra",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node index.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -1331,7 +1331,7 @@ export async function infraTable( req, res ) {
|
|
|
1331
1331
|
'Store ID': element.storeId,
|
|
1332
1332
|
'Resloved By': element.userName,
|
|
1333
1333
|
'Status': element.status,
|
|
1334
|
-
'Primary Issues': element.primaryIssue,
|
|
1334
|
+
'Primary Issues': element.primaryIssue=='-'?'Issue not identified':element.primaryIssue,
|
|
1335
1335
|
'Secondary Issues': element.secondaryIssue,
|
|
1336
1336
|
'Comment': element.otherscomment ? element.otherscomment : ( element.commentText ? element.commentText : '-' ),
|
|
1337
1337
|
} );
|
|
@@ -1344,7 +1344,7 @@ export async function infraTable( req, res ) {
|
|
|
1344
1344
|
'Store Name': element.storeName,
|
|
1345
1345
|
'Store ID': element.storeId,
|
|
1346
1346
|
'Status': element.status,
|
|
1347
|
-
'Primary Issues': element.primaryIssue,
|
|
1347
|
+
'Primary Issues': element.primaryIssue=='-'?'Issue not identified':element.primaryIssue,
|
|
1348
1348
|
'Secondary Issues': element.secondaryIssue,
|
|
1349
1349
|
'Comment': element.otherscomment ? element.otherscomment : ( element.commentText ? element.commentText : '-' ),
|
|
1350
1350
|
} );
|
|
@@ -1978,6 +1978,7 @@ export async function dataMismatchTable( req, res ) {
|
|
|
1978
1978
|
clientId: '$basicDetails.clientId',
|
|
1979
1979
|
storeName: '$basicDetails.storeName',
|
|
1980
1980
|
storeId: '$basicDetails.storeId',
|
|
1981
|
+
type: '$dataMismatch.showToClient',
|
|
1981
1982
|
userId: { $ifNull: [ '$ticketDetails.addressingUser', '$$REMOVE' ] },
|
|
1982
1983
|
issueType: 1,
|
|
1983
1984
|
status: 1,
|
|
@@ -2038,6 +2039,7 @@ export async function dataMismatchTable( req, res ) {
|
|
|
2038
2039
|
userInfo: { $first: '$userInfo' },
|
|
2039
2040
|
issueType: { $first: '$issueType' },
|
|
2040
2041
|
status: { $first: '$status' },
|
|
2042
|
+
type: { $first: '$type' },
|
|
2041
2043
|
otherscomment: { $last: '$otherscomment.comment' },
|
|
2042
2044
|
},
|
|
2043
2045
|
},
|
|
@@ -2052,7 +2054,7 @@ export async function dataMismatchTable( req, res ) {
|
|
|
2052
2054
|
storeId: 1,
|
|
2053
2055
|
userName: { $ifNull: [ '$userInfo.userName', '' ] },
|
|
2054
2056
|
email: { $ifNull: [ '$userInfo.email', '' ] },
|
|
2055
|
-
type: { $ifNull: [ { $cond: [ { $eq: [ '$
|
|
2057
|
+
type: { $ifNull: [ { $cond: [ { $eq: [ '$type', false ] }, 'internal', { $cond: [ { $eq: [ '$type', true ] }, 'external', '' ] } ] }, '' ] },
|
|
2056
2058
|
issueType: 1,
|
|
2057
2059
|
status: 1,
|
|
2058
2060
|
otherscomment: 1,
|