Compare commits

...

3 Commits

Author SHA1 Message Date
rishalkv 5aae2824ef fix: edge case creation of og 2026-05-26 12:36:11 +05:30
rishalkv 3af6401429 fix: og title description 2026-05-26 12:33:51 +05:30
rishalkv c2b54725fe fix: og image update 2026-05-26 11:57:10 +05:30
+11 -1
View File
@@ -354,11 +354,15 @@ export const updateDoctor = async (req, res) => {
professionalSummary, professionalSummary,
seoTitle, seoTitle,
metaDescription, metaDescription,
ogTitle,
ogDescription,
focusKeyphrase, focusKeyphrase,
slug, slug,
tags, tags,
ogImage,
specializations, specializations,
} = req.body; } = req.body;
if (!doctorId) { if (!doctorId) {
return res.status(400).json({ return res.status(400).json({
success: false, success: false,
@@ -427,6 +431,9 @@ export const updateDoctor = async (req, res) => {
data: { data: {
seoTitle, seoTitle,
metaDescription, metaDescription,
ogTitle,
ogDescription,
ogImage,
focusKeyphrase, focusKeyphrase,
slug: slug ? slug : null, slug: slug ? slug : null,
tags: tags || [], tags: tags || [],
@@ -435,8 +442,11 @@ export const updateDoctor = async (req, res) => {
} else { } else {
const seo = await prisma.seo.create({ const seo = await prisma.seo.create({
data: { data: {
seoTitle, ogImage,
metaDescription, metaDescription,
seoTitle,
ogDescription,
ogTitle,
focusKeyphrase, focusKeyphrase,
slug: slug ? slug : null, slug: slug ? slug : null,
tags: tags || [], tags: tags || [],