@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.
- package/dist/lib/utility.js +2 -6
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}
|