Switched to local MongoDB

This commit is contained in:
Malak
2024-08-18 14:43:18 +03:00
committed by QkoSad
parent 78ba14cc98
commit 8e83b6b8df
8 changed files with 40 additions and 26 deletions
-1
View File
@@ -17,7 +17,6 @@ const router = express.Router();
router.get("/", auth, async (req: any, res) => {
try {
let user: unknown = null
console.log(req.user)
if (isUserId(req)) {
user = await User.findById(req.user.id).select("-password");
res.json(user);