@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 +1 -1
- package/src/AdminController.js +8 -1
package/package.json
CHANGED
package/src/AdminController.js
CHANGED
|
@@ -244,7 +244,14 @@ class AdminController extends Controller {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
methodDeleteDestroyTrash = async (req, res) => {
|
|
247
|
-
const item = await this.repository.
|
|
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);
|