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,
seoTitle,
metaDescription,
ogTitle,
ogDescription,
focusKeyphrase,
slug,
tags,
ogImage,
specializations,
} = req.body;
if (!doctorId) {
return res.status(400).json({
success: false,
@@ -427,6 +431,9 @@ export const updateDoctor = async (req, res) => {
data: {
seoTitle,
metaDescription,
ogTitle,
ogDescription,
ogImage,
focusKeyphrase,
slug: slug ? slug : null,
tags: tags || [],
@@ -435,8 +442,11 @@ export const updateDoctor = async (req, res) => {
} else {
const seo = await prisma.seo.create({
data: {
seoTitle,
ogImage,
metaDescription,
seoTitle,
ogDescription,
ogTitle,
focusKeyphrase,
slug: slug ? slug : null,
tags: tags || [],