@autofleet/sheilta 1.3.10-beta.0 → 1.3.10-beta.1

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.
@@ -40,6 +40,8 @@ const getAttributeFromOrder = (order, options = {}) => {
40
40
  const formatOrder = ({ order, associationModels = [], }) => {
41
41
  const formattedOrders = [];
42
42
  const orderScopesMap = new Map();
43
+ console.log('first order inside: ', order);
44
+ console.log('associationModels inside: ', associationModels);
43
45
  order.forEach((o) => {
44
46
  if ([o, o.substring(1)].some(t => t.startsWith(CUSTOM_FIELDS_QUERY_PREFIX))) {
45
47
  if (!orderScopesMap.has(CUSTOM_FIELDS_SORT_SCOPE)) {
@@ -51,11 +53,15 @@ const formatOrder = ({ order, associationModels = [], }) => {
51
53
  ASCENDING_KEY);
52
54
  return;
53
55
  }
56
+ console.log('o inside:', o);
54
57
  const formattedOrder = [utils_1.extractAttributeNameFromOrder(o, associationModels)];
58
+ console.log('formattedOrder inside: ', formattedOrder);
55
59
  const isOrderDescOrder = utils_1.isOrderDesc(o);
60
+ console.log('isOrderDescOrder inside: ', isOrderDescOrder);
56
61
  const isOrderAssociation = utils_1.isAttributeByAssociation(isOrderDescOrder
57
62
  ? o.split(utils_1.ORDER_PREFIX)[1]
58
63
  : o, associationModels);
64
+ console.log('isOrderAssociation inside: ', isOrderAssociation);
59
65
  if (isOrderAssociation) {
60
66
  formattedOrder.push(utils_1.extractAssociatedAttributeNameFromOrder(o));
61
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sheilta",
3
- "version": "1.3.10-beta.0",
3
+ "version": "1.3.10-beta.1",
4
4
  "description": "manage cache",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",