From 15e31d1affea2b1faf2f23d14b8834502bb417c4 Mon Sep 17 00:00:00 2001 From: Shubhojeet Bera Date: Wed, 26 Jun 2024 12:53:12 +0530 Subject: [PATCH] fix: minor typo bug --- backend/Router/channel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Router/channel.js b/backend/Router/channel.js index 1c9fa4b..5673cf3 100644 --- a/backend/Router/channel.js +++ b/backend/Router/channel.js @@ -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" });