tango-app-api-store-zone 3.0.0-dev → 3.0.1-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-store-zone",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1-dev",
|
|
4
4
|
"description": "zone",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"mongodb": "^6.5.0",
|
|
22
22
|
"nodemon": "^3.1.0",
|
|
23
23
|
"swagger-ui-express": "^5.0.0",
|
|
24
|
-
"tango-api-schema": "^2.0.
|
|
25
|
-
"tango-app-api-middleware": "^1.0.
|
|
24
|
+
"tango-api-schema": "^2.0.96",
|
|
25
|
+
"tango-app-api-middleware": "^1.0.64-dev",
|
|
26
26
|
"winston": "^3.13.0",
|
|
27
27
|
"winston-daily-rotate-file": "^5.0.0"
|
|
28
28
|
},
|
|
@@ -124,11 +124,11 @@ export const getCameraList = async ( req, res ) => {
|
|
|
124
124
|
return res.sendError( 'no data found', 204 );
|
|
125
125
|
}
|
|
126
126
|
const folderPath = { file_path: `${req.query.storeId}/zone_base_images/`,
|
|
127
|
-
Bucket: appConfig.cloud.aws.bucket.
|
|
127
|
+
Bucket: appConfig.cloud.aws.bucket.zoneBaseImage, MaxKeys: 1000,
|
|
128
128
|
};
|
|
129
129
|
let fileList = await listFileByPath( folderPath );
|
|
130
130
|
const TaggedfolderPath = { file_path: `${req.query.storeId}/zone_tagged_image/`,
|
|
131
|
-
Bucket: appConfig.cloud.aws.bucket.
|
|
131
|
+
Bucket: appConfig.cloud.aws.bucket.zoneBaseImage, MaxKeys: 1000,
|
|
132
132
|
};
|
|
133
133
|
let tagFileList = await listFileByPath( TaggedfolderPath );
|
|
134
134
|
for ( let [ index, camera ] of cameraDetails.entries() ) {
|
|
@@ -170,14 +170,14 @@ export const getCameraList = async ( req, res ) => {
|
|
|
170
170
|
}
|
|
171
171
|
if ( tagPath ) {
|
|
172
172
|
const params = { file_path: tagPath,
|
|
173
|
-
Bucket: appConfig.cloud.aws.bucket.
|
|
173
|
+
Bucket: appConfig.cloud.aws.bucket.zoneBaseImage,
|
|
174
174
|
};
|
|
175
175
|
const cameraTagImage = await signedUrl( params );
|
|
176
176
|
camera.tagImg = cameraTagImage;
|
|
177
177
|
}
|
|
178
178
|
if ( imgPath ) {
|
|
179
179
|
const baseParams = { file_path: imgPath,
|
|
180
|
-
Bucket: appConfig.cloud.aws.bucket.
|
|
180
|
+
Bucket: appConfig.cloud.aws.bucket.zoneBaseImage,
|
|
181
181
|
};
|
|
182
182
|
const cameraBaseImage = await signedUrl( baseParams );
|
|
183
183
|
camera.baseImg = cameraBaseImage;
|
|
@@ -339,7 +339,7 @@ export const updatezoneTagging = async ( req, res ) => {
|
|
|
339
339
|
if ( !camDetails ) {
|
|
340
340
|
return res.sendError( 'Something Went Wrong', 500 );
|
|
341
341
|
}
|
|
342
|
-
const response = await axios.post( appConfig.url.
|
|
342
|
+
const response = await axios.post( appConfig.url.zoneTaggingLamdaUrl, camDetails );
|
|
343
343
|
if ( response?.data?.status && response?.data?.status == 'success' ) {
|
|
344
344
|
return res.sendSuccess( 'Zone Updated Successfully' );
|
|
345
345
|
} else {
|