We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93ecea3 + 67a0996 commit 6ccb24eCopy full SHA for 6ccb24e
src/services/crudDatabase/admin.js
@@ -3,6 +3,7 @@ import { checkExistedWalletAddress } from "./user.js";
3
4
export const getListOfUsers = async () => {
5
const projection = {
6
+ walletAddress: 1,
7
fullName: 1,
8
avatar: 1,
9
website: 1,
src/services/crudDatabase/user.js
@@ -10,10 +10,6 @@ import {
10
TRENDING_REDUCING_LIMIT_ITEM
11
} from "../../constants/index.js";
12
13
-export const getUserByUsername = async (username) => {
14
- return await UserModel.findOne({ username: username }).lean();
15
-};
16
-
17
export const getUserByEmail = async (email) => {
18
return await UserModel.findOne({ email: email }).lean();
19
};
0 commit comments