@thornfe/jql2iql 0.0.2 → 0.0.3
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/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24887,7 +24887,9 @@ function convertOrderByClause(orderBy, constantsMap) {
|
|
|
24887
24887
|
for (const orderField of orderBy.fields) {
|
|
24888
24888
|
const fieldName = orderField.field;
|
|
24889
24889
|
const direction = orderField.direction.toLowerCase();
|
|
24890
|
-
const
|
|
24890
|
+
const fieldConfig = fieldMap[normalizeFieldName(fieldName)];
|
|
24891
|
+
if (!fieldConfig || !fieldConfig.customFieldKey) continue;
|
|
24892
|
+
const iqlFieldName = fieldConfig.customFieldKey;
|
|
24891
24893
|
orderFields.push(`${iqlFieldName} ${direction}`);
|
|
24892
24894
|
}
|
|
24893
24895
|
if (orderFields.length === 0) return "";
|
package/dist/index.mjs
CHANGED
|
@@ -24889,7 +24889,9 @@ function convertOrderByClause(orderBy, constantsMap) {
|
|
|
24889
24889
|
for (const orderField of orderBy.fields) {
|
|
24890
24890
|
const fieldName = orderField.field;
|
|
24891
24891
|
const direction = orderField.direction.toLowerCase();
|
|
24892
|
-
const
|
|
24892
|
+
const fieldConfig = fieldMap[normalizeFieldName(fieldName)];
|
|
24893
|
+
if (!fieldConfig || !fieldConfig.customFieldKey) continue;
|
|
24894
|
+
const iqlFieldName = fieldConfig.customFieldKey;
|
|
24893
24895
|
orderFields.push(`${iqlFieldName} ${direction}`);
|
|
24894
24896
|
}
|
|
24895
24897
|
if (orderFields.length === 0) return "";
|