|
@@ -118,9 +118,6 @@ module.exports = (crowi) => {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- const sortOrderArray = ['asc', 'desc'];
|
|
|
|
|
- const sortArray = ['status', 'username', 'name', 'email', 'createdAt'];
|
|
|
|
|
-
|
|
|
|
|
const statusNo = {
|
|
const statusNo = {
|
|
|
registered: User.STATUS_REGISTERED,
|
|
registered: User.STATUS_REGISTERED,
|
|
|
active: User.STATUS_ACTIVE,
|
|
active: User.STATUS_ACTIVE,
|
|
@@ -128,6 +125,9 @@ module.exports = (crowi) => {
|
|
|
invited: User.STATUS_INVITED,
|
|
invited: User.STATUS_INVITED,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const sortOrderArray = ['asc', 'desc'];
|
|
|
|
|
+ const sortArray = ['status', 'username', 'name', 'email', 'createdAt'];
|
|
|
|
|
+
|
|
|
validator.statusList = [
|
|
validator.statusList = [
|
|
|
// validate status list status array match to statusNo
|
|
// validate status list status array match to statusNo
|
|
|
body('statusList').custom((value) => {
|
|
body('statusList').custom((value) => {
|