[2.0.0] #54

Merged
kailasdevdas merged 64 commits from dev into main 2026-07-13 17:53:39 +00:00
Showing only changes of commit 2fc57a1ae9 - Show all commits
+10 -1
View File
@@ -189,7 +189,15 @@ export const getDoctorsByDepartmentId = async (req, res) => {
doctor: {isActive: true},
},
include: {
doctor: true,
doctor: {
include: {
seo: {
select: {
slug: true,
},
},
},
},
},
orderBy: {sortOrder: "asc"},
});
@@ -200,6 +208,7 @@ export const getDoctorsByDepartmentId = async (req, res) => {
image: d.doctor.image ?? "",
designation: d.doctor.designation,
hierarchyOrder: d.sortOrder,
slug: d.doctor.seo?.slug ?? "",
}));
res.status(200).json({