tango-app-api-audit 3.4.68-beta.8 → 3.4.68-beta.9
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
|
@@ -297,7 +297,7 @@ export async function viewFile( req, res ) {
|
|
|
297
297
|
const searchData = temp?
|
|
298
298
|
getData['lastAuditedDetails']= {
|
|
299
299
|
'auditedBy': getUserName?.userName || '',
|
|
300
|
-
'completionTime': temp?._source?.
|
|
300
|
+
'completionTime': temp?._source?.endTime? dayjs.utc( temp?._source?.endTime ).tz( 'Asia/Kolkata' ).format( 'HH:mm:ss' ): '',
|
|
301
301
|
'timeZone': temp?.timeZone || '',
|
|
302
302
|
} : null;
|
|
303
303
|
getData['complianceScore'] = getData.complianceScore || getData?.totalSteps>0 ? Math.round( ( getData?.coveredStepsAI/ getData?.totalSteps )*100 ): 0;
|
|
@@ -737,7 +737,7 @@ export async function getFileHistory( req, res ) {
|
|
|
737
737
|
userId: data._source.userId,
|
|
738
738
|
userName: findUser.userName,
|
|
739
739
|
Date: dayjs( data._source.endTime ).format( 'DD/MM/YYYY' ),
|
|
740
|
-
Time: dayjs.utc( data._source.endTime ).tz( 'Asia/Kolkata' ).format( 'HH:ss
|
|
740
|
+
Time: dayjs.utc( data._source.endTime ).tz( 'Asia/Kolkata' ).format( 'HH:mm:ss' ),
|
|
741
741
|
} );
|
|
742
742
|
}
|
|
743
743
|
|