tango-app-api-store-builder 1.0.0-beta-30 → 1.0.0-beta-31
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-builder",
|
|
3
|
-
"version": "1.0.0-beta-
|
|
3
|
+
"version": "1.0.0-beta-31",
|
|
4
4
|
"description": "storeBuilder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"joi": "^17.13.3",
|
|
24
24
|
"mongodb": "^6.12.0",
|
|
25
25
|
"nodemon": "^3.1.9",
|
|
26
|
-
"tango-api-schema": "^2.2.
|
|
26
|
+
"tango-api-schema": "^2.2.59",
|
|
27
27
|
"tango-app-api-middleware": "^3.1.48",
|
|
28
28
|
"winston": "^3.17.0",
|
|
29
29
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -1927,10 +1927,10 @@ export async function storeFixturesTask( req, res ) {
|
|
|
1927
1927
|
|
|
1928
1928
|
const fixturesWithStatus = await Promise.all(
|
|
1929
1929
|
fixtures.map( async ( fixture ) => {
|
|
1930
|
-
if ( fixture?.imageUrl ) {
|
|
1930
|
+
if ( fixture?.imageUrl || fixture.vmImageUrl ) {
|
|
1931
1931
|
let params = {
|
|
1932
1932
|
Bucket: JSON.parse( process.env.BUCKET ).storeBuilder,
|
|
1933
|
-
file_path: fixture.imageUrl,
|
|
1933
|
+
file_path: req.body.type == 'vm' ? fixture.vmImageUrl : fixture.imageUrl,
|
|
1934
1934
|
};
|
|
1935
1935
|
fixture.imageUrl = await signedUrl( params );
|
|
1936
1936
|
} else {
|
|
@@ -1994,10 +1994,10 @@ export async function storeFixturesTask( req, res ) {
|
|
|
1994
1994
|
|
|
1995
1995
|
const centerFixturesWithStatus = await Promise.all(
|
|
1996
1996
|
centerFixtures.map( async ( fixture ) => {
|
|
1997
|
-
if ( fixture?.imageUrl ) {
|
|
1997
|
+
if ( fixture?.imageUrl || fixture.vmImageUrl ) {
|
|
1998
1998
|
let params = {
|
|
1999
1999
|
Bucket: JSON.parse( process.env.BUCKET ).storeBuilder,
|
|
2000
|
-
file_path: fixture.imageUrl,
|
|
2000
|
+
file_path: req.body.type == 'vm' ? fixture.vmImageUrl : fixture.imageUrl,
|
|
2001
2001
|
};
|
|
2002
2002
|
fixture.imageUrl = await signedUrl( params );
|
|
2003
2003
|
} else {
|
|
@@ -253,8 +253,8 @@ export async function uploadImage( req, res ) {
|
|
|
253
253
|
|
|
254
254
|
let params = {
|
|
255
255
|
Bucket: JSON.parse( process.env.BUCKET ).storeBuilder,
|
|
256
|
-
Key:
|
|
257
|
-
fileName: req.
|
|
256
|
+
Key: `planogram/vmImage/`,
|
|
257
|
+
fileName: `${req.body.taskId}.png`,
|
|
258
258
|
ContentType: req.files.file.mimeType,
|
|
259
259
|
body: req.files.file.data,
|
|
260
260
|
};
|