@azteam/express 1.2.396 → 1.2.397
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,9 +1,9 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {NOT_EXISTS} from '@azteam/error';
|
|
3
|
+
import {rulesId} from '@azteam/validator';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import {adminRoleMiddleware, paginateMiddleware, validateMiddleware} from '../middleware';
|
|
6
|
+
import {REQUEST_TYPE} from '../constant';
|
|
7
7
|
|
|
8
8
|
import Controller from './Controller';
|
|
9
9
|
|
|
@@ -342,12 +342,12 @@ class AdminController extends Controller {
|
|
|
342
342
|
|
|
343
343
|
methodDeleteDestroyTrash = async (req, res) => {
|
|
344
344
|
const item = await this.repository.findOne(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
345
|
+
{
|
|
346
|
+
_id: req.params.id,
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
force: true,
|
|
350
|
+
}
|
|
351
351
|
);
|
|
352
352
|
if (!item) return res.error(NOT_EXISTS);
|
|
353
353
|
|