Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5aae2824ef | |||
| 3af6401429 | |||
| c2b54725fe |
@@ -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 || [],
|
||||
|
||||
Reference in New Issue
Block a user