tango-app-api-store-builder 1.0.0-beta-31 → 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-31",
3
+ "version": "1.0.0-beta-32",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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: `planogram/vmImage/`,
257
- fileName: `${req.body.taskId}.png`,
256
+ Key: `${req.body.taskId}/${req.body.qno}/${dayjs().format()}`,
257
+ fileName: req.files.file.name,
258
258
  ContentType: req.files.file.mimeType,
259
259
  body: req.files.file.data,
260
260
  };