add remaining methods to service
This commit is contained in:
1 parent
a08ded4093
commit
6e321afa72
5 files changed
+107
-107
No files matched your search
@@ -195,7 +195,7 @@ const deleteAllOtherUsers = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
const getAllUsers = async (req, res) => {
|
||||
const getAllUsers = async () => {
|
||||
try {
|
||||
const users = await UserModel.find().select("-password").select("-profileImage");
|
||||
return users;
|
||||
|
||||
Reference in new issue
Block a user