tango-app-api-store-builder 1.0.0-beta-30 → 1.0.0-beta-32

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-30",
3
+ "version": "1.0.0-beta-32",
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.57",
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 {