@azteam/express 1.2.434 → 1.2.435

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.
@@ -135,7 +135,7 @@ function _default() {
135
135
  });
136
136
  _context.next = 42;
137
137
  return _client.post("".concat(systemURL, "/v1/user_positions/is_permission"), {
138
- roles: roles
138
+ roles: JSON.stringify(roles)
139
139
  });
140
140
  case 42:
141
141
  _response = _context.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.434",
3
+ "version": "1.2.435",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -91,7 +91,7 @@ export default function (roles = null, minLevel = USER_LEVEL.USER, opts = {}) {
91
91
  Authorization: headers.authorization,
92
92
  },
93
93
  }),
94
- response = await client.post(`${systemURL}/v1/user_positions/is_permission`, {roles});
94
+ response = await client.post(`${systemURL}/v1/user_positions/is_permission`, {roles: JSON.stringify(roles)});
95
95
  if (response.success) {
96
96
  return next();
97
97
  }