This commit is contained in:
@@ -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 || '',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user