tango-app-api-infra 3.9.5-vms.86 → 3.9.5-vms.87
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
|
@@ -26,7 +26,7 @@ export async function createTicket( req, res ) {
|
|
|
26
26
|
inputData.userName = req?.user?.userName;
|
|
27
27
|
inputData.email = req?.user?.email;
|
|
28
28
|
inputData.role = req?.user?.role;
|
|
29
|
-
inputData.status = '
|
|
29
|
+
inputData.status = 'Open';
|
|
30
30
|
inputData.duplicateACCount = 0;
|
|
31
31
|
inputData.employeeACCount = 0;
|
|
32
32
|
inputData.houseKeepingACCount = 0;
|
|
@@ -78,7 +78,7 @@ export async function createinternalTicket( req, res ) {
|
|
|
78
78
|
ticketId: 'TE_FDT_' + new Date().valueOf(),
|
|
79
79
|
createdAt: new Date(),
|
|
80
80
|
updatedAt: new Date(),
|
|
81
|
-
status: '
|
|
81
|
+
status: 'Open',
|
|
82
82
|
comments: inputData?.comments || '',
|
|
83
83
|
createdByEmail: req?.user?.email,
|
|
84
84
|
createdByUserName: req?.user?.userName,
|
|
@@ -259,6 +259,7 @@ export async function tangoReviewTicket( req, res ) {
|
|
|
259
259
|
createdByEmail: req?.user?.email,
|
|
260
260
|
createdByUserName: req?.user?.userName,
|
|
261
261
|
createdByRole: req?.user?.role,
|
|
262
|
+
createdAt: new Date(),
|
|
262
263
|
} ) );
|
|
263
264
|
|
|
264
265
|
record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -1 ),
|
|
@@ -308,6 +309,7 @@ export async function tangoReviewTicket( req, res ) {
|
|
|
308
309
|
createdByEmail: req?.user?.email,
|
|
309
310
|
createdByUserName: req?.user?.userName,
|
|
310
311
|
createdByRole: req?.user?.role,
|
|
312
|
+
createdAt: new Date(),
|
|
311
313
|
} ) );
|
|
312
314
|
|
|
313
315
|
record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -1 ),
|
|
@@ -4894,6 +4896,7 @@ export async function updateUserTicketStatus( req, res ) {
|
|
|
4894
4896
|
...lastEntry,
|
|
4895
4897
|
status: 'In-Progress',
|
|
4896
4898
|
updatedAt: currentTime,
|
|
4899
|
+
createdAt: currentTime,
|
|
4897
4900
|
createdByRole: req?.user?.role || '',
|
|
4898
4901
|
createdByEmail: req?.user?.email || '',
|
|
4899
4902
|
createdByUserName: req?.user?.userName || '',
|
|
@@ -1891,6 +1891,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1891
1891
|
createdByEmail: req?.user?.email,
|
|
1892
1892
|
createdByUserName: req?.user?.userName,
|
|
1893
1893
|
createdByRole: req?.user?.role,
|
|
1894
|
+
createdAt: new Date(),
|
|
1894
1895
|
} ) );
|
|
1895
1896
|
|
|
1896
1897
|
record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -1 ),
|
|
@@ -1919,6 +1920,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1919
1920
|
createdByEmail: req?.user?.email,
|
|
1920
1921
|
createdByUserName: req?.user?.userName,
|
|
1921
1922
|
createdByRole: req?.user?.role,
|
|
1923
|
+
createdAt: new Date(),
|
|
1922
1924
|
} );
|
|
1923
1925
|
}
|
|
1924
1926
|
}
|
|
@@ -1963,6 +1965,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1963
1965
|
createdByEmail: req?.user?.email,
|
|
1964
1966
|
createdByUserName: req?.user?.userName,
|
|
1965
1967
|
createdByRole: req?.user?.role,
|
|
1968
|
+
createdAt: new Date(),
|
|
1966
1969
|
} ) );
|
|
1967
1970
|
|
|
1968
1971
|
record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -1 ),
|
|
@@ -1982,6 +1985,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
1982
1985
|
createdByEmail: req?.user?.email,
|
|
1983
1986
|
createdByUserName: req?.user?.userName,
|
|
1984
1987
|
createdByRole: req?.user?.role,
|
|
1988
|
+
createdAt: new Date(),
|
|
1985
1989
|
} );
|
|
1986
1990
|
}
|
|
1987
1991
|
}
|
|
@@ -2026,6 +2030,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
2026
2030
|
createdByEmail: req?.user?.email,
|
|
2027
2031
|
createdByUserName: req?.user?.userName,
|
|
2028
2032
|
createdByRole: req?.user?.role,
|
|
2033
|
+
createdAt: new Date(),
|
|
2029
2034
|
} ) );
|
|
2030
2035
|
|
|
2031
2036
|
record.mappingInfo = [ ...ticketData?.[0]?._source?.mappingInfo.slice( 0, -1 ),
|
|
@@ -2052,6 +2057,7 @@ export async function ticketApprove( req, res, next ) {
|
|
|
2052
2057
|
createdByEmail: req?.user?.email,
|
|
2053
2058
|
createdByUserName: req?.user?.userName,
|
|
2054
2059
|
createdByRole: req?.user?.role,
|
|
2060
|
+
createdAt: new Date(),
|
|
2055
2061
|
} );
|
|
2056
2062
|
}
|
|
2057
2063
|
}
|
|
@@ -2072,7 +2078,6 @@ export async function ticketApprove( req, res, next ) {
|
|
|
2072
2078
|
},
|
|
2073
2079
|
);
|
|
2074
2080
|
}
|
|
2075
|
-
console.log( req.body, getConfig.footfallDirectoryConfigs.revision );
|
|
2076
2081
|
let checkapprove = getConfig.footfallDirectoryConfigs.revision.filter( ( data ) => data.actionType === 'approver' && data.isChecked === true );
|
|
2077
2082
|
|
|
2078
2083
|
|