tango-app-api-trax 3.4.0-flag-7 → 3.4.0-flag-8
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
|
@@ -71,7 +71,7 @@ export const insertLog = async ( req, res ) => {
|
|
|
71
71
|
},
|
|
72
72
|
};
|
|
73
73
|
let insertOS = await insertOpenSearchData( JSON.parse( process.env.OPENSEARCH ).traxActivityLog, inserttraxlogs );
|
|
74
|
-
|
|
74
|
+
console.log( 'insertOS', insertOS );
|
|
75
75
|
return res.sendSuccess( 'insert successfully' );
|
|
76
76
|
// if ( insertOS && insertOS.body.result == 'created' ) {
|
|
77
77
|
// emailersIds.push( insertOS.body._id );
|
|
@@ -263,7 +263,7 @@ export async function startChecklist( req, res ) {
|
|
|
263
263
|
getchecklist[index].questionAnswers[secIndex].questions = questions;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
let openSearch = JSON.parse( process.env.
|
|
266
|
+
let openSearch = JSON.parse( process.env.OPENSEARCH );
|
|
267
267
|
console.log( 'openSearch', openSearch );
|
|
268
268
|
let inserttraxlogs = {
|
|
269
269
|
client_id: req.user.clientId,
|
|
@@ -455,7 +455,7 @@ export async function startTask( req, res ) {
|
|
|
455
455
|
};
|
|
456
456
|
await checklistLogs.create( logData );
|
|
457
457
|
|
|
458
|
-
let openSearch = JSON.parse( process.env.
|
|
458
|
+
let openSearch = JSON.parse( process.env.OPENSEARCH );
|
|
459
459
|
console.log( 'openSearch', openSearch );
|
|
460
460
|
let inserttraxlogs = {
|
|
461
461
|
client_id: req.user.clientId,
|
|
@@ -1884,7 +1884,7 @@ export async function submitChecklist( req, res ) {
|
|
|
1884
1884
|
if ( requestData.submittype == 'submit' ) {
|
|
1885
1885
|
updateOpenSearch( req.user, requestData );
|
|
1886
1886
|
|
|
1887
|
-
let openSearch = JSON.parse( process.env.
|
|
1887
|
+
let openSearch = JSON.parse( process.env.OPENSEARCH );
|
|
1888
1888
|
console.log( 'openSearch', openSearch );
|
|
1889
1889
|
let inserttraxlogs = {
|
|
1890
1890
|
client_id: req.user.clientId,
|
|
@@ -2074,7 +2074,7 @@ export async function submitTask( req, res ) {
|
|
|
2074
2074
|
if ( submittype == 'submit' ) {
|
|
2075
2075
|
updateOpenSearchTask( user, requestData );
|
|
2076
2076
|
|
|
2077
|
-
let openSearch = JSON.parse( process.env.
|
|
2077
|
+
let openSearch = JSON.parse( process.env.OPENSEARCH );
|
|
2078
2078
|
console.log( 'openSearch', openSearch );
|
|
2079
2079
|
let inserttraxlogs = {
|
|
2080
2080
|
client_id: req.user.clientId,
|