From 5f404bb2fb143ca677be3042368288421915f1e7 Mon Sep 17 00:00:00 2001 From: rishalkv Date: Tue, 26 May 2026 11:52:29 +0530 Subject: [PATCH] fix: og image update --- backend/src/controllers/doctor.controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/controllers/doctor.controller.js b/backend/src/controllers/doctor.controller.js index ae4cdca..e51c8aa 100644 --- a/backend/src/controllers/doctor.controller.js +++ b/backend/src/controllers/doctor.controller.js @@ -357,8 +357,10 @@ export const updateDoctor = async (req, res) => { focusKeyphrase, slug, tags, + ogImage, specializations, } = req.body; + console.log({image}); if (!doctorId) { return res.status(400).json({ success: false, @@ -427,6 +429,7 @@ export const updateDoctor = async (req, res) => { data: { seoTitle, metaDescription, + ogImage, focusKeyphrase, slug: slug ? slug : null, tags: tags || [], @@ -435,6 +438,7 @@ export const updateDoctor = async (req, res) => { } else { const seo = await prisma.seo.create({ data: { + ogImage, seoTitle, metaDescription, focusKeyphrase,