tango-app-api-trax 3.2.1-beta-9 → 3.2.1-beta-10

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-trax",
3
- "version": "3.2.1-beta-9",
3
+ "version": "3.2.1-beta-10",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -149,7 +149,7 @@ export async function startChecklist( req, res ) {
149
149
  }
150
150
 
151
151
  let updateData = {};
152
- let storeTimeZone = await storeService.findOne( { storeName: { $regex: getBeforeChecklist[0].storeName, $options: 'i' }, clientId: getBeforeChecklist[0].client_id }, { 'storeProfile.timeZone': 1 } );
152
+ let storeTimeZone = await storeService.findOne( { storeId: getBeforeChecklist[0].store_id, clientId: getBeforeChecklist[0].client_id }, { 'storeProfile.timeZone': 1 } );
153
153
  let currentDateTime;
154
154
  if ( storeTimeZone?.storeProfile?.timeZone ) {
155
155
  currentDateTime = dayjs().tz( storeTimeZone?.storeProfile?.timeZone );
@@ -1700,7 +1700,7 @@ export async function submitChecklist( req, res ) {
1700
1700
  updateQuery._id = new ObjectId( requestData.processedcheckListId );
1701
1701
  updateQuery.userId = req.user._id;
1702
1702
  updateQuery.date_string = requestData.date;
1703
- let storeTimeZone = await storeService.findOne( { storeName: { $regex: getchecklist[0].storeName, $options: 'i' }, clientId: getchecklist[0].client_id }, { 'storeProfile.timeZone': 1 } );
1703
+ let storeTimeZone = await storeService.findOne( { storeId: getchecklist[0].store_id, clientId: getchecklist[0].client_id }, { 'storeProfile.timeZone': 1 } );
1704
1704
  let currentDateTime;
1705
1705
  if ( storeTimeZone?.storeProfile?.timeZone ) {
1706
1706
  currentDateTime = dayjs().tz( storeTimeZone?.storeProfile?.timeZone );