Skip to main content
๐Ÿ› Bug HuntND Node.js Easyโšก+10 XP

Missing Await

This async route doesn't wait for the database.

๐Ÿ› Find the bug
1app.get("/users", async (req, res) => {
2 const users = User.find();
3 res.json(users);
4});
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: