Skip to content
Snippets Groups Projects

added DR update API

9 open threads
1 file
+ 0
5
Compare changes
  • Side-by-side
  • Inline
+ 0
5
@@ -72,11 +72,6 @@ export class DoctorsService {
);
}
//in DB Unique key constraints for registration_no. Will throw error if body has duplicate registration_no
if (existingDoctor?.registration_no == doctorRegNo) {
throw new AppException(`Duplicate registration number found.`, '409');
}
// Deactivate the old doctor record
await this.prisma.doctor_master.update({
where: { id: doctorId },
Loading