|
|
@@ -181,6 +181,8 @@ module.exports = (crowi) => {
|
|
|
[sort]: (sortOrder === 'desc') ? -1 : 1,
|
|
|
};
|
|
|
|
|
|
+ // For more information about the external specification of the User API, see here (https://dev.growi.org/5fd7466a31d89500488248e3)
|
|
|
+
|
|
|
const orConditions = [
|
|
|
{ name: { $in: searchWord } },
|
|
|
{ username: { $in: searchWord } },
|