We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af49ea1 commit 7ffd05dCopy full SHA for 7ffd05d
src/db/mongo/users.js
@@ -9,7 +9,7 @@ exports.findUser = async function (username) {
9
exports.getUsers = async function (query) {
10
console.log(`Getting users for query= ${JSON.stringify(query)}`);
11
const collection = await connect(usersCollection);
12
- return collection.find(query).toArray();
+ return collection.find(query, { password: 0 }).toArray();
13
};
14
15
exports.deleteUser = async function (username) {
0 commit comments