@azteam/express 1.2.122 → 1.2.123

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.122",
3
+ "version": "1.2.123",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -127,12 +127,12 @@ class AdminController extends Controller {
127
127
  validateMiddleware(REQUEST_TYPE.BODY, this.options.rulesModify),
128
128
  async (req, res) => {
129
129
 
130
- let item = await this.options.roles.findOneById(req.params.id);
130
+ let item = await this.repository.findOneById(req.params.id);
131
131
  if (!item) return res.error(NOT_EXISTS);
132
132
 
133
133
  const data = await this.beforeModify(req.body, req.user);
134
134
 
135
- item = await this.options.roles.modifyByUser(req.user.id, item, rdata);
135
+ item = await this.repository.modifyByUser(req.user.id, item, rdata);
136
136
 
137
137
  return res.success(item, this.options.guardResponse, this.options.allowResponse);
138
138
  }
@@ -175,4 +175,4 @@ class AdminController extends Controller {
175
175
  };
176
176
  }
177
177
 
178
- export default AdminController;
178
+ export default AdminController;