Merge branch 'feat/seo-preview' into feat/healthcheck-seo

This commit is contained in:
Kailasdevdas
2026-05-26 11:59:23 +05:30
3 changed files with 177 additions and 2 deletions
@@ -366,8 +366,10 @@ export const updateDoctor = async (req, res) => {
focusKeyphrase,
slug,
tags,
ogImage,
specializations,
} = req.body;
if (!doctorId) {
return res.status(400).json({
success: false,
@@ -436,6 +438,7 @@ export const updateDoctor = async (req, res) => {
data: {
seoTitle,
metaDescription,
ogImage,
focusKeyphrase,
slug: slug ? slug : null,
tags: tags || [],
@@ -444,6 +447,7 @@ export const updateDoctor = async (req, res) => {
} else {
const seo = await prisma.seo.create({
data: {
ogImage,
seoTitle,
metaDescription,
focusKeyphrase,