@azteam/express 1.2.224 → 1.2.225

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.224",
3
+ "version": "1.2.225",
4
4
  "main": "src/index.js",
5
5
  "engines": {
6
6
  "node": ">= 12.0.0",
@@ -244,7 +244,14 @@ class AdminController extends Controller {
244
244
  }
245
245
 
246
246
  methodDeleteDestroyTrash = async (req, res) => {
247
- const item = await this.repository.findOneTrashById(req.params.id);
247
+ const item = await this.repository.findOne(
248
+ {
249
+ _id: req.params.id,
250
+ },
251
+ {
252
+ trash: true,
253
+ }
254
+ );
248
255
  if (!item) return res.error(NOT_EXISTS);
249
256
 
250
257
  await this.repository.destroy(item.id);