Update email template attachment schema to include 'docx' file type
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Modified the `fileType` field in the `emailTemplateAttachmentSchema` to add 'docx' as an optional file type, enhancing the flexibility of file attachments in email templates.
This commit is contained in:
parent
cfc63bb6fd
commit
4d41e850df
@ -48,7 +48,7 @@ const emailTemplateAttachmentSchema = new Schema(
|
||||
type: { type: String, enum: ['file', 'documentTemplate'], required: true },
|
||||
file: { type: Schema.Types.ObjectId, refPath: 'attachments.type', required: true },
|
||||
fileName: { type: String, required: true },
|
||||
fileType: { type: String, enum: ['pdf', 'jpeg', 'png', 'svg'], required: false },
|
||||
fileType: { type: String, enum: ['pdf', 'jpeg', 'png', 'svg', 'docx'], required: false },
|
||||
},
|
||||
{ _id: true }
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user