|
|
@@ -124,6 +124,7 @@ module.exports = (crowi) => {
|
|
|
registered: UserStatus.STATUS_REGISTERED,
|
|
|
active: UserStatus.STATUS_ACTIVE,
|
|
|
suspended: UserStatus.STATUS_SUSPENDED,
|
|
|
+ deleted: UserStatus.STATUS_DELETED,
|
|
|
invited: UserStatus.STATUS_INVITED,
|
|
|
};
|
|
|
|
|
|
@@ -157,7 +158,7 @@ module.exports = (crowi) => {
|
|
|
'createdAt',
|
|
|
'lastLoginAt',
|
|
|
]),
|
|
|
- query('page').isInt({ min: 1 }),
|
|
|
+ query('page').isInt({ min: 1 }).toInt(),
|
|
|
query('forceIncludeAttributes')
|
|
|
.toArray()
|
|
|
.custom((value, { req }) => {
|
|
|
@@ -317,7 +318,7 @@ module.exports = (crowi) => {
|
|
|
validator.statusList,
|
|
|
apiV3FormValidator,
|
|
|
async (req, res) => {
|
|
|
- const page = parseInt(req.query.page) || 1;
|
|
|
+ const page = req.query.page || 1;
|
|
|
|
|
|
// status
|
|
|
const forceIncludeAttributes = Array.isArray(
|