@optimiser/common 1.0.280 → 1.0.281

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.
@@ -1797,9 +1797,7 @@ function BuildGridFieldProjection(project, field, group) {
1797
1797
  project[fldName] = 1;
1798
1798
  project[alias] = 1;
1799
1799
  for (var i = 0; i < field.Schema.LookupFields.length; i++) {
1800
- // searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], [" "]] });
1801
- // added by Shahzaib, make int to string and concat
1802
- searchConcatArry.push({ "$ifNull": [{ $toString: '$' + alias + '.' + field.Schema.LookupFields[i] }, [" "]] });
1800
+ searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], [" "]] });
1803
1801
  if (i < field.Schema.LookupFields.length - 1) {
1804
1802
  searchConcatArry.push([" "]);
1805
1803
  }
@@ -1840,9 +1838,7 @@ function BuildGridFieldProjection(project, field, group) {
1840
1838
  project[alias] = 1;
1841
1839
  if (field.Schema.LookupObject) {
1842
1840
  for (var i = 0; i < field.Schema.LookupFields.length; i++) {
1843
- // searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], [" "] ] });
1844
- // added by Shahzaib, make int to string and concat
1845
- searchConcatArry.push({ "$ifNull": [{ $toString: '$' + alias + '.' + field.Schema.LookupFields[i] }, [" "]] });
1841
+ searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], [" "]] });
1846
1842
  if (i < field.Schema.LookupFields.length - 1) {
1847
1843
  searchConcatArry.push([" "]);
1848
1844
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.280",
3
+ "version": "1.0.281",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {