diff --git a/src/models/inboxModel.ts b/src/models/inboxModel.ts index fa7cc81a..9469c3e5 100644 --- a/src/models/inboxModel.ts +++ b/src/models/inboxModel.ts @@ -85,16 +85,19 @@ const messageSchema = new Schema( startDate: Date, endDate: Date, r: Boolean, - att: [String], - countedAtt: [typeCountSchema], + att: { type: [String], default: undefined }, + countedAtt: { type: [typeCountSchema], default: undefined }, transmission: String, - arg: [ - { - Key: String, - Tag: String, - _id: false - } - ] + arg: { + type: [ + { + Key: String, + Tag: String, + _id: false + } + ], + default: undefined + } }, { timestamps: { createdAt: "date", updatedAt: false }, id: false } );