Explorar o código

add lastLoginAt to select

Yuki Takei %!s(int64=6) %!d(string=hai) anos
pai
achega
52cb3f931f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/routes/admin.js

+ 1 - 1
src/server/routes/admin.js

@@ -440,7 +440,7 @@ module.exports = function(crowi, app) {
 
     const result = await User.findUsersWithPagination({
       page,
-      select: User.USER_PUBLIC_FIELDS,
+      select: `${User.USER_PUBLIC_FIELDS} lastLoginAt`,
       populate: User.IMAGE_POPULATION,
     });