tango-app-api-audit 3.4.68-beta.7 → 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/.eslintrc.cjs CHANGED
@@ -36,7 +36,7 @@ module.exports = {
36
36
  'no-unused-vars': 'error',
37
37
  'new-cap': [ 'error', { 'newIsCap': true, 'capIsNew': false } ],
38
38
  'prefer-const': 'off',
39
- // 'no-console': 'error',
39
+ // 'no-console': 'error',
40
40
  },
41
41
  };
42
42
 
package/README.md CHANGED
@@ -1,29 +1,29 @@
1
- # README #
2
-
3
- This README would normally document whatever steps are necessary to get your application up and running.
4
-
5
- ### What is this repository for? ###
6
-
7
- * Quick summary
8
- * Version
9
- * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
-
11
- ### How do I get set up? ###
12
-
13
- * Summary of set up
14
- * Configuration
15
- * Dependencies
16
- * Database configuration
17
- * How to run tests
18
- * Deployment instructions
19
-
20
- ### Contribution guidelines ###
21
-
22
- * Writing tests
23
- * Code review
24
- * Other guidelines
25
-
26
- ### Who do I talk to? ###
27
-
28
- * Repo owner or admin
1
+ # README #
2
+
3
+ This README would normally document whatever steps are necessary to get your application up and running.
4
+
5
+ ### What is this repository for? ###
6
+
7
+ * Quick summary
8
+ * Version
9
+ * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
+
11
+ ### How do I get set up? ###
12
+
13
+ * Summary of set up
14
+ * Configuration
15
+ * Dependencies
16
+ * Database configuration
17
+ * How to run tests
18
+ * Deployment instructions
19
+
20
+ ### Contribution guidelines ###
21
+
22
+ * Writing tests
23
+ * Code review
24
+ * Other guidelines
25
+
26
+ ### Who do I talk to? ###
27
+
28
+ * Repo owner or admin
29
29
  * Other community or team contact
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "tango-app-api-audit",
3
- "version": "3.4.68-beta.7",
4
- "description": "audit & audit metrics apis",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "start": "nodemon --exec \"eslint --fix . && node index.js\""
9
- },
10
- "engines": {
11
- "node": ">=18.10.0"
12
- },
13
- "author": "praveenraj",
14
- "license": "ISC",
15
- "dependencies": {
16
- "adm-zip": "^0.5.15",
17
- "aws-sdk": "^2.1643.0",
18
- "axios": "^1.7.9",
19
- "dayjs": "^1.11.11",
20
- "dotenv": "^16.4.5",
21
- "express": "^4.19.2",
22
- "form-data": "^4.0.1",
23
- "handlebars": "^4.7.8",
24
- "joi-to-swagger": "^6.2.0",
25
- "lodash": "^4.17.21",
26
- "mongodb": "^6.7.0",
27
- "nodemon": "^3.1.3",
28
- "swagger-ui-express": "^5.0.1",
29
- "tango-api-schema": "^2.2.95",
30
- "tango-app-api-middleware": "^3.1.71",
31
- "winston": "^3.13.0",
32
- "winston-daily-rotate-file": "^5.0.0"
33
- },
34
- "devDependencies": {
35
- "eslint": "^8.57.0",
36
- "eslint-config-google": "^0.14.0",
37
- "eslint-config-semistandard": "^17.0.0",
38
- "eslint-config-standard": "^17.1.0",
39
- "eslint-plugin-import": "^2.29.1",
40
- "eslint-plugin-promise": "^6.2.0"
41
- }
42
- }
1
+ {
2
+ "name": "tango-app-api-audit",
3
+ "version": "3.4.68-beta.9",
4
+ "description": "audit & audit metrics apis",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "start": "nodemon --exec \"eslint --fix . && node index.js\""
9
+ },
10
+ "engines": {
11
+ "node": ">=18.10.0"
12
+ },
13
+ "author": "praveenraj",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "adm-zip": "^0.5.15",
17
+ "aws-sdk": "^2.1643.0",
18
+ "axios": "^1.7.9",
19
+ "dayjs": "^1.11.11",
20
+ "dotenv": "^16.4.5",
21
+ "express": "^4.19.2",
22
+ "form-data": "^4.0.1",
23
+ "handlebars": "^4.7.8",
24
+ "joi-to-swagger": "^6.2.0",
25
+ "lodash": "^4.17.21",
26
+ "mongodb": "^6.7.0",
27
+ "nodemon": "^3.1.3",
28
+ "swagger-ui-express": "^5.0.1",
29
+ "tango-api-schema": "^2.2.95",
30
+ "tango-app-api-middleware": "^3.1.71",
31
+ "winston": "^3.13.0",
32
+ "winston-daily-rotate-file": "^5.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "eslint": "^8.57.0",
36
+ "eslint-config-google": "^0.14.0",
37
+ "eslint-config-semistandard": "^17.0.0",
38
+ "eslint-config-standard": "^17.1.0",
39
+ "eslint-plugin-import": "^2.29.1",
40
+ "eslint-plugin-promise": "^6.2.0"
41
+ }
42
+ }
@@ -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?.startTime? new Date( temp?._source?.startTime ).toLocaleTimeString( 'en-IN', { hour12: false } ): '',
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: data._source.endTime?new Date( data._source.endTime ).toLocaleTimeString( 'en-IN', { hour12: false } ):'-',
740
+ Time: dayjs.utc( data._source.endTime ).tz( 'Asia/Kolkata' ).format( 'HH:mm:ss' ),
741
741
  } );
742
742
  }
743
743
 
package/config.zip DELETED
Binary file