Skip to content

Commit

Permalink
fix: minor typo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shubho0908 committed Jun 26, 2024
1 parent b828e48 commit 15e31d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Router/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ Channel.post("/savecustomization/:email", async (req, res) => {
}

const user = await userData.findOne({ email });
const video = await videodata.findOne({ email });
const video = await videodata.findOne({ user_email: email });

if (!user) {
return res.status(404).json({ error: "User not found" });
Expand Down

0 comments on commit 15e31d1

Please sign in to comment.