tango-app-api-infra 3.0.82-dev → 3.0.83-dev
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-infra",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.83-dev",
|
|
4
4
|
"description": "infra",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"nodemon": "^3.1.0",
|
|
28
28
|
"swagger-ui-express": "^5.0.0",
|
|
29
29
|
"tango-api-schema": "^2.0.103",
|
|
30
|
-
"tango-app-api-middleware": "^1.0.
|
|
30
|
+
"tango-app-api-middleware": "^1.0.73-dev",
|
|
31
31
|
"winston": "^3.12.0",
|
|
32
32
|
"winston-daily-rotate-file": "^5.0.0"
|
|
33
33
|
},
|
|
@@ -773,7 +773,7 @@ export async function getInfraIssues( req, res ) {
|
|
|
773
773
|
_id: 0,
|
|
774
774
|
streamName: 1,
|
|
775
775
|
cameraNumber: 1,
|
|
776
|
-
thumbnailImage:
|
|
776
|
+
thumbnailImage: '$thumbnailImage',
|
|
777
777
|
},
|
|
778
778
|
},
|
|
779
779
|
];
|
|
@@ -810,6 +810,11 @@ export async function getInfraIssues( req, res ) {
|
|
|
810
810
|
const getHighCountTicket = await aggregateTangoTicket( highCountQuery );
|
|
811
811
|
logger.info( { getHighCountTicket: getHighCountTicket } );
|
|
812
812
|
const camera = await aggregateCamera( camQuery );
|
|
813
|
+
for ( let index = 0; index < camera.length; index++ ) {
|
|
814
|
+
if ( camera?.[index]?.thumbnailImage ) {
|
|
815
|
+
camera[index].thumbnailImage = await signedUrl( { Bucket: appConfig.cloud.aws.bucket.baseImage, file_path: camera[index].thumbnailImage } );
|
|
816
|
+
}
|
|
817
|
+
}
|
|
813
818
|
logger.info( { message: camera } );
|
|
814
819
|
return res.sendSuccess( { result: mergeValue, streams: camera, highCountTicketDetails: getHighCountTicket[0] || defaultValue } );
|
|
815
820
|
} catch ( error ) {
|