tango-app-api-trax 3.9.26 → 3.9.28
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/index.js
CHANGED
|
@@ -9,6 +9,6 @@ import { mobileRouter } from './src/routes/mobileTrax.routes.js';
|
|
|
9
9
|
import { internalTraxRouter } from './src/routes/internalTraxApi.router.js';
|
|
10
10
|
import { locusOrderRouter } from './src/routes/locus.router.js';
|
|
11
11
|
import { traxActivityLogRouter } from './src/routes/activityLog.router.js';
|
|
12
|
-
import
|
|
12
|
+
import traxActivityLogMiddleware from './src/logging/activityLogMiddleware.js';
|
|
13
13
|
|
|
14
|
-
export { traxDashboardRouter, traxFlagRouter, traxRouter, galleryRouter, downloadRouter, mobileRouter, internalTraxRouter, locusOrderRouter, traxActivityLogRouter,
|
|
14
|
+
export { traxDashboardRouter, traxFlagRouter, traxRouter, galleryRouter, downloadRouter, mobileRouter, internalTraxRouter, locusOrderRouter, traxActivityLogRouter, traxActivityLogMiddleware };
|
package/package.json
CHANGED
|
@@ -1765,6 +1765,7 @@ export async function sopMobilechecklistMultiSectionFormatterv2( req, res, next
|
|
|
1765
1765
|
} else {
|
|
1766
1766
|
if ( qaans[k].validationType == 'Capture Multiple Image with description' ) {
|
|
1767
1767
|
qaans[k]['validationImage']=[];
|
|
1768
|
+
qaans[k]['validationVideo']=[];
|
|
1768
1769
|
if ( requestSection[i].validationImage.length ) {
|
|
1769
1770
|
for ( let image of requestSection[i].validationImage ) {
|
|
1770
1771
|
let validationAnswer = decodeURIComponent( image.split( '?' )[0] );
|
|
@@ -12,7 +12,7 @@ function refreshUser( ctx, req ) {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export default function
|
|
15
|
+
export default function traxActivityLogMiddleware( req, res, next ) {
|
|
16
16
|
if ( !loggingConfig.enabled ) return next();
|
|
17
17
|
|
|
18
18
|
const WRITE_METHODS = [ 'POST', 'PUT', 'PATCH', 'DELETE' ];
|