fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 38s

This commit is contained in:
2026-03-09 15:07:56 -04:00
parent cd37154001
commit a3e3b37914
11 changed files with 513 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ exports.createResource = (req, res) => {
office_name: req.body.office_name || '',
specialty: req.body.specialty,
type: req.body.type, // value may be ['doctor', 'pharmacy' or 'other']
type_other: req.body.type_other || '',
// Legacy fields for backward compatibility
name_original: req.body.name_original || req.body.office_name || '',

View File

@@ -10,6 +10,7 @@ module.exports = mongoose => {
office_name: String, // Merged from name_original and name_branch
specialty: String,
type: String, // value may be ['doctor', 'pharmacy' or 'other']
type_other: String,
// Legacy fields for backward compatibility
name_original: String,