@autofleet/sadot 1.6.18-beta.17 → 1.6.18-beta.18
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.
|
@@ -27,7 +27,7 @@ router.get("/effective", async (req, res) => {
|
|
|
27
27
|
`;
|
|
28
28
|
const { withMatPath } = require_mat_path_state.matPathState;
|
|
29
29
|
if (!withMatPath) return res.status(501).json({ error: "Effective field policy resolution is not configured" });
|
|
30
|
-
if (!req.headers["x-
|
|
30
|
+
if (!req.headers["x-af-context-paths"]) return res.status(400).json({ error: "x-af-context-paths header is required" });
|
|
31
31
|
const entityType = req.params.entityType;
|
|
32
32
|
try {
|
|
33
33
|
const [policy] = await withMatPath(tableName, (transaction) => require_FieldPolicy.default.sequelize.query(EFFECTIVE_POLICY_QUERY, {
|
|
@@ -26,7 +26,7 @@ router.get("/effective", async (req, res) => {
|
|
|
26
26
|
`;
|
|
27
27
|
const { withMatPath } = matPathState;
|
|
28
28
|
if (!withMatPath) return res.status(501).json({ error: "Effective field policy resolution is not configured" });
|
|
29
|
-
if (!req.headers["x-
|
|
29
|
+
if (!req.headers["x-af-context-paths"]) return res.status(400).json({ error: "x-af-context-paths header is required" });
|
|
30
30
|
const entityType = req.params.entityType;
|
|
31
31
|
try {
|
|
32
32
|
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.
|
|
3
|
+
"version": "1.6.18-beta.18",
|
|
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/node-common": "^4.3.22",
|
|
57
56
|
"@autofleet/errors": "^3.3.7",
|
|
58
57
|
"@autofleet/logger": "^4.7.0",
|
|
58
|
+
"@autofleet/node-common": "^4.3.22",
|
|
59
59
|
"@autofleet/zehut": "^4.13.4"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|