tango-app-api-trax 1.0.0-beta-task.30 → 1.0.0-beta-task.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-trax",
3
- "version": "1.0.0-beta-task.30",
3
+ "version": "1.0.0-beta-task.31",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -181,7 +181,14 @@ export async function startChecklist( req, res ) {
181
181
  submitTime: { $ifNull: [ '$submitTime', '' ] },
182
182
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
183
183
  // allowedStoreLocation: { $ifNull: [ '$checallowedStoreLocationkListName', false ] },
184
- allowedStoreLocation: { $ifNull: [ false, false ] },
184
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
185
+ allowedStoreLocation: {
186
+ $cond: {
187
+ if: { $eq: [ '$client_id', '11' ] },
188
+ then: false,
189
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
190
+ },
191
+ },
185
192
  questionAnswers: { $ifNull: [ '$questionAnswers', '' ] },
186
193
  redoStatus: { $ifNull: [ '$redoStatus', '' ] },
187
194
  },
@@ -346,7 +353,14 @@ export async function startTask( req, res ) {
346
353
  submitTime: { $ifNull: [ '$submitTime', '' ] },
347
354
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
348
355
  // allowedStoreLocation: { $ifNull: [ '$allowedStoreLocation', false ] },
349
- allowedStoreLocation: { $ifNull: [ false, false ] },
356
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
357
+ allowedStoreLocation: {
358
+ $cond: {
359
+ if: { $eq: [ '$client_id', '11' ] },
360
+ then: false,
361
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
362
+ },
363
+ },
350
364
  questionAnswers: { $ifNull: [ '$questionAnswers', '' ] },
351
365
  redoStatus: { $ifNull: [ '$redoStatus', '' ] },
352
366
  },
@@ -1795,7 +1809,14 @@ export async function checklist( req, res ) {
1795
1809
  submitTime: { $ifNull: [ '$submitTime', '' ] },
1796
1810
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
1797
1811
  // allowedStoreLocation: { $ifNull: [ '$allowedStoreLocation', '' ] },
1798
- allowedStoreLocation: { $ifNull: [ false, false ] },
1812
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
1813
+ allowedStoreLocation: {
1814
+ $cond: {
1815
+ if: { $eq: [ '$client_id', '11' ] },
1816
+ then: false,
1817
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
1818
+ },
1819
+ },
1799
1820
  reinitiateStatus: { $ifNull: [ '$reinitiateStatus', '' ] },
1800
1821
  startTime_string: { $ifNull: [ '$startTime_string', '' ] },
1801
1822
  submitTime_string: { $ifNull: [ '$submitTime_string', '' ] },
@@ -1860,7 +1881,14 @@ export async function checklistv1( req, res ) {
1860
1881
  submitTime: { $ifNull: [ '$submitTime', '' ] },
1861
1882
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
1862
1883
  // allowedStoreLocation: { $ifNull: [ '$allowedStoreLocation', '' ] },
1863
- allowedStoreLocation: { $ifNull: [ false, false ] },
1884
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
1885
+ allowedStoreLocation: {
1886
+ $cond: {
1887
+ if: { $eq: [ '$client_id', '11' ] },
1888
+ then: false,
1889
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
1890
+ },
1891
+ },
1864
1892
  reinitiateStatus: { $ifNull: [ '$reinitiateStatus', '' ] },
1865
1893
  startTime_string: { $ifNull: [ '$startTime_string', '' ] },
1866
1894
  submitTime_string: { $ifNull: [ '$submitTime_string', '' ] },
@@ -1944,7 +1972,14 @@ export async function questionList( req, res ) {
1944
1972
  submitTime: { $ifNull: [ '$submitTime', '' ] },
1945
1973
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
1946
1974
  // allowedStoreLocation: { $ifNull: [ '$allowedStoreLocation', '' ] },
1947
- allowedStoreLocation: { $ifNull: [ false, false ] },
1975
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
1976
+ allowedStoreLocation: {
1977
+ $cond: {
1978
+ if: { $eq: [ '$client_id', '11' ] },
1979
+ then: false,
1980
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
1981
+ },
1982
+ },
1948
1983
  reinitiateStatus: { $ifNull: [ '$reinitiateStatus', '' ] },
1949
1984
  questionAnswers: { $ifNull: [ '$questionAnswers', '' ] },
1950
1985
  getchecklist: { $ifNull: [ '$getchecklist', '' ] },
@@ -2243,7 +2278,14 @@ export async function taskQuestionList( req, res ) {
2243
2278
  submitTime: { $ifNull: [ '$submitTime', '' ] },
2244
2279
  allowedOverTime: { $ifNull: [ '$allowedOverTime', '' ] },
2245
2280
  // allowedStoreLocation: { $ifNull: [ '$allowedStoreLocation', '' ] },
2246
- allowedStoreLocation: { $ifNull: [ false, false ] },
2281
+ // allowedStoreLocation: { $ifNull: [ false, false ] },
2282
+ allowedStoreLocation: {
2283
+ $cond: {
2284
+ if: { $eq: [ '$client_id', '11' ] },
2285
+ then: false,
2286
+ else: { $ifNull: [ '$allowedStoreLocation', '' ] },
2287
+ },
2288
+ },
2247
2289
  reinitiateStatus: { $ifNull: [ '$reinitiateStatus', '' ] },
2248
2290
  questionAnswers: { $ifNull: [ '$questionAnswers', '' ] },
2249
2291
  getchecklist: { $ifNull: [ '$getchecklist', '' ] },