@azteam/express 1.2.422 → 1.2.424

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.
@@ -291,11 +291,7 @@ var AdminController = /*#__PURE__*/function (_Controller) {
291
291
  switch (_context10.prev = _context10.next) {
292
292
  case 0:
293
293
  _context10.next = 2;
294
- return _this.repository.findOne({
295
- _id: req.params.id
296
- }, {
297
- force: true
298
- });
294
+ return _this.repository.findOneTrashById(req.params.id);
299
295
  case 2:
300
296
  item = _context10.sent;
301
297
  if (item) {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@azteam/express","version":"1.2.422","license":"MIT","author":"toda <sp.azsolution.net@gmail.com>","main":"./lib/index.js","module":"./src/index.js","scripts":{"prepublish":"babel src --delete-dir-on-start -d lib"},"dependencies":{"@azteam/constant":"1.0.8","@azteam/crypto":"1.0.35","@azteam/error":"1.0.36","@azteam/http-client":"1.0.115","@azteam/util":"1.0.43","@azteam/validator":"1.0.23","@grpc/grpc-js":"1.6.7","@grpc/proto-loader":"0.6.12","@socket.io/redis-adapter":"7.2.0","body-parser":"1.19.0","compression":"1.7.4","cookie-parser":"1.4.4","cors":"2.8.4","eiows":"4.1.2","ejs":"3.1.8","etag":"1.8.1","express":"4.17.1","express-async-errors":"3.1.1","express-rate-limit":"5.1.3","helmet":"3.21.2","jsonwebtoken":"9.0.0","lodash":"4.17.21","method-override":"3.0.0","morgan":"1.10.0","pluralize":"8.0.0","psl":"1.8.0","socket.io":"4.4.1","ua-parser-js":"1.0.32"}}
1
+ {"name":"@azteam/express","version":"1.2.424","license":"MIT","author":"toda <sp.azsolution.net@gmail.com>","main":"./lib/index.js","module":"./src/index.js","scripts":{"prepublishOnly":"babel src --delete-dir-on-start -d lib"},"dependencies":{"@azteam/constant":"1.0.8","@azteam/crypto":"1.0.35","@azteam/error":"1.0.36","@azteam/http-client":"1.0.115","@azteam/util":"1.0.43","@azteam/validator":"1.0.23","@grpc/grpc-js":"1.6.7","@grpc/proto-loader":"0.6.12","@socket.io/redis-adapter":"7.2.0","body-parser":"1.19.0","compression":"1.7.4","cookie-parser":"1.4.4","cors":"2.8.4","eiows":"4.1.2","ejs":"3.1.8","etag":"1.8.1","express":"4.17.1","express-async-errors":"3.1.1","express-rate-limit":"5.1.3","helmet":"3.21.2","jsonwebtoken":"9.0.0","lodash":"4.17.21","method-override":"3.0.0","morgan":"1.10.0","pluralize":"8.0.0","psl":"1.8.0","socket.io":"4.4.1","ua-parser-js":"1.0.32"}}
@@ -349,9 +349,7 @@ class AdminController extends Controller {
349
349
  }
350
350
 
351
351
  methodDeleteDestroyTrash = async (req, res) => {
352
- const item = await this.repository.findOneTrashById(req.params.id, {
353
- force: true,
354
- });
352
+ const item = await this.repository.findOneTrashById(req.params.id);
355
353
  if (!item) return res.error(NOT_EXISTS);
356
354
 
357
355
  const oldItem = _.cloneDeep(item);