Przeglądaj źródła

omit "User.STATUS_DELETED"

Shun Miyazawa 3 lat temu
rodzic
commit
0d4f6b2a30
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/server/routes/apiv3/users.js

+ 1 - 1
packages/app/src/server/routes/apiv3/users.js

@@ -950,7 +950,7 @@ module.exports = (crowi) => {
       }
       }
 
 
       if (options.isIncludeInactiveUser) {
       if (options.isIncludeInactiveUser) {
-        const inactiveUserStates = [User.STATUS_REGISTERED, User.STATUS_SUSPENDED, User.STATUS_DELETED, User.STATUS_INVITED];
+        const inactiveUserStates = [User.STATUS_REGISTERED, User.STATUS_SUSPENDED, User.STATUS_INVITED];
         const inactiveUserData = await User.findUserByUsernameRegexWithTotalCount(q, inactiveUserStates, { offset, limit });
         const inactiveUserData = await User.findUserByUsernameRegexWithTotalCount(q, inactiveUserStates, { offset, limit });
         const inactiveUsernames = inactiveUserData.users.map(user => user.username);
         const inactiveUsernames = inactiveUserData.users.map(user => user.username);
         Object.assign(data, { inactiveUser: { usernames: inactiveUsernames, totalCount: inactiveUserData.totalCount } });
         Object.assign(data, { inactiveUser: { usernames: inactiveUsernames, totalCount: inactiveUserData.totalCount } });