@optimiser/common 1.0.270 → 1.0.271

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.
@@ -1801,7 +1801,9 @@ function BuildGridFieldProjection(project, field, group) {
1801
1801
  project[alias] = 1;
1802
1802
  if (field.Schema.LookupObject) {
1803
1803
  for (var i = 0; i < field.Schema.LookupFields.length; i++) {
1804
- searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], ""] });
1804
+ //searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], ""] });
1805
+ // added by Mohan, make int to string and concat
1806
+ searchConcatArry.push({ "$ifNull": [{ $toString: '$' + alias + '.' + field.Schema.LookupFields[i] }, ""] });
1805
1807
  if (i < field.Schema.LookupFields.length - 1) {
1806
1808
  searchConcatArry.push(" ");
1807
1809
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.270",
3
+ "version": "1.0.271",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {