tango-app-api-trax 3.3.1-beta-76 → 3.3.1-beta-78
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
|
@@ -1802,10 +1802,10 @@ export async function submitChecklist( req, res ) {
|
|
|
1802
1802
|
client_id: req.user.clientId,
|
|
1803
1803
|
redoStatus: requestData?.redoStatus ? true : false,
|
|
1804
1804
|
userEmail: getchecklist[0].userEmail || '',
|
|
1805
|
-
userName: getchecklist[0].userName
|
|
1805
|
+
userName: getchecklist[0].userName || '',
|
|
1806
1806
|
coverage: getchecklist[0].coverage || '',
|
|
1807
1807
|
};
|
|
1808
|
-
|
|
1808
|
+
console.log( 'logInsertData=>', logInsertData );
|
|
1809
1809
|
await checklistLogs.create( logInsertData );
|
|
1810
1810
|
// let time = dayjs().format( 'HH:mm:ss' );
|
|
1811
1811
|
// let [ hours, minutes ] = time.split( ':' ).map( Number );
|
|
@@ -1272,11 +1272,14 @@ export const checklistInfo = async ( req, res ) => {
|
|
|
1272
1272
|
else: 0,
|
|
1273
1273
|
},
|
|
1274
1274
|
} },
|
|
1275
|
+
idList: { $push: '$_id' },
|
|
1275
1276
|
},
|
|
1276
1277
|
} );
|
|
1277
1278
|
|
|
1278
1279
|
findQuery.push( {
|
|
1279
1280
|
$project: {
|
|
1281
|
+
_id: 0,
|
|
1282
|
+
idList: 1,
|
|
1280
1283
|
checkListName: 1,
|
|
1281
1284
|
coverage: 1,
|
|
1282
1285
|
createdByName: 1,
|
|
@@ -1302,6 +1305,7 @@ export const checklistInfo = async ( req, res ) => {
|
|
|
1302
1305
|
|
|
1303
1306
|
findQuery.push( {
|
|
1304
1307
|
$project: {
|
|
1308
|
+
idList: 1,
|
|
1305
1309
|
checkListName: 1,
|
|
1306
1310
|
coverage: 1,
|
|
1307
1311
|
checkListChar: { $substr: [ '$checkListName', 0, 2 ] },
|