@autofleet/sadot 1.6.18-beta.18 → 1.6.18-beta.19

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.
@@ -23,11 +23,9 @@ router.get("/effective", async (req, res) => {
23
23
  AND cep.path @> ANY(current_setting('mat_path.paths', true)::ltree[])
24
24
  WHERE fp.entity_type = $1
25
25
  ORDER BY COALESCE(nlevel(cep.path), 0) DESC
26
- LIMIT 1
27
- `;
26
+ LIMIT 1`;
28
27
  const { withMatPath } = require_mat_path_state.matPathState;
29
28
  if (!withMatPath) return res.status(501).json({ error: "Effective field policy resolution is not configured" });
30
- if (!req.headers["x-af-context-paths"]) return res.status(400).json({ error: "x-af-context-paths header is required" });
31
29
  const entityType = req.params.entityType;
32
30
  try {
33
31
  const [policy] = await withMatPath(tableName, (transaction) => require_FieldPolicy.default.sequelize.query(EFFECTIVE_POLICY_QUERY, {
@@ -22,11 +22,9 @@ router.get("/effective", async (req, res) => {
22
22
  AND cep.path @> ANY(current_setting('mat_path.paths', true)::ltree[])
23
23
  WHERE fp.entity_type = $1
24
24
  ORDER BY COALESCE(nlevel(cep.path), 0) DESC
25
- LIMIT 1
26
- `;
25
+ LIMIT 1`;
27
26
  const { withMatPath } = matPathState;
28
27
  if (!withMatPath) return res.status(501).json({ error: "Effective field policy resolution is not configured" });
29
- if (!req.headers["x-af-context-paths"]) return res.status(400).json({ error: "x-af-context-paths header is required" });
30
28
  const entityType = req.params.entityType;
31
29
  try {
32
30
  const [policy] = await withMatPath(tableName, (transaction) => FieldPolicy_default.sequelize.query(EFFECTIVE_POLICY_QUERY, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sadot",
3
- "version": "1.6.18-beta.18",
3
+ "version": "1.6.18-beta.19",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,9 +53,9 @@
53
53
  "express": "^4.21.2",
54
54
  "npm-watch": "^0.11.0",
55
55
  "supertest": "^7.0.0",
56
- "@autofleet/errors": "^3.3.7",
57
- "@autofleet/logger": "^4.7.0",
58
56
  "@autofleet/node-common": "^4.3.22",
57
+ "@autofleet/logger": "^4.7.0",
58
+ "@autofleet/errors": "^3.3.7",
59
59
  "@autofleet/zehut": "^4.13.4"
60
60
  },
61
61
  "peerDependencies": {