|
|
@@ -767,7 +767,7 @@ module.exports = function(crowi) {
|
|
|
// find
|
|
|
builder.addConditionToPagenate(opt.offset, opt.limit, sortOpt);
|
|
|
builder.populateDataToList(User.USER_FIELDS_EXCEPT_CONFIDENTIAL);
|
|
|
- const pages = await builder.query.exec('find');
|
|
|
+ const pages = await builder.query.lean().exec('find');
|
|
|
|
|
|
const result = {
|
|
|
pages, totalCount, offset: opt.offset, limit: opt.limit,
|