refactor: Update support_contact field initialization in agent model

- Removed handling for empty support_contact object in createAgent function.
- Changed default value of support_contact in agent schema to undefined.
This commit is contained in:
Danny Avila 2025-07-15 11:23:41 -04:00
parent b750f52727
commit 98de99d9ac
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
2 changed files with 1 additions and 12 deletions

View file

@ -100,10 +100,7 @@ const agentSchema = new Schema<IAgent>(
},
support_contact: {
type: Schema.Types.Mixed,
default: {
name: '',
email: '',
},
default: undefined,
},
is_promoted: {
type: Boolean,