Compare commits
2 Commits
dev
...
f44cc8de88
| Author | SHA1 | Date | |
|---|---|---|---|
| f44cc8de88 | |||
| 5f404bb2fb |
@@ -357,8 +357,10 @@ export const updateDoctor = async (req, res) => {
|
|||||||
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 +429,7 @@ export const updateDoctor = async (req, res) => {
|
|||||||
data: {
|
data: {
|
||||||
seoTitle,
|
seoTitle,
|
||||||
metaDescription,
|
metaDescription,
|
||||||
|
ogImage,
|
||||||
focusKeyphrase,
|
focusKeyphrase,
|
||||||
slug: slug ? slug : null,
|
slug: slug ? slug : null,
|
||||||
tags: tags || [],
|
tags: tags || [],
|
||||||
@@ -435,6 +438,7 @@ export const updateDoctor = async (req, res) => {
|
|||||||
} else {
|
} else {
|
||||||
const seo = await prisma.seo.create({
|
const seo = await prisma.seo.create({
|
||||||
data: {
|
data: {
|
||||||
|
ogImage,
|
||||||
seoTitle,
|
seoTitle,
|
||||||
metaDescription,
|
metaDescription,
|
||||||
focusKeyphrase,
|
focusKeyphrase,
|
||||||
|
|||||||
Reference in New Issue
Block a user