tango-app-api-infra 3.7.1-beta.4 → 3.7.1-beta.6

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.7.1-beta.4",
3
+ "version": "3.7.1-beta.6",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6,8 +6,9 @@ import { findOneStore } from '../services/store.service.js';
6
6
  export async function createTicket( req, res ) {
7
7
  try {
8
8
  const openSearch = JSON.parse( process.env.OPENSEARCH );
9
- const getStoreName = await findOneStore( { storeId: inputData.storeId }, { storeName: 1, _id: 0 } );
10
9
  const inputData = req.body;
10
+ const getStoreName = await findOneStore( { storeId: inputData.storeId }, { storeName: 1, _id: 0 } );
11
+
11
12
  inputData.ticketId = 'TE_FDT_' + new Date().valueOf();
12
13
  inputData.clientId = inputData?.storeId?.split( '-' )[0];
13
14
  inputData.storeName =getStoreName?.storeName;