axe-api 1.4.5 → 1.4.6

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.
@@ -106,7 +106,7 @@ class RouterBuilder {
106
106
  return;
107
107
  }
108
108
  // We should different parameter name for child routes
109
- const subRelations = model.relations.filter((item) => item.type === Enums_1.Relationships.HAS_MANY);
109
+ const subRelations = model.relations.filter((item) => item.type === Enums_1.Relationships.HAS_MANY && item.options.autoRouting);
110
110
  for (const relation of subRelations) {
111
111
  const child = model.children.find((item) => item.name === relation.model);
112
112
  // It should be recursive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axe-api",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "AXE API is a simple tool to create Rest APIs quickly.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -112,7 +112,7 @@
112
112
  "eslint-plugin-import": "^2.30.0",
113
113
  "eslint-plugin-node": "^11.1.0",
114
114
  "eslint-plugin-promise": "^6.6.0",
115
- "eslint-plugin-unicorn": "^55.0.0",
115
+ "eslint-plugin-unicorn": "^56.0.0",
116
116
  "eslint-watch": "^8.0.0",
117
117
  "glob": "^11.0.0",
118
118
  "husky": "^9.1.6",