From cdc9493b40256b70a9171db4f2687f23e7ee2318 Mon Sep 17 00:00:00 2001 From: Ordis <134585663+OrdisPrime@users.noreply.github.com> Date: Fri, 31 Jan 2025 10:53:13 +0100 Subject: [PATCH] 2 --- src/models/inboxModel.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 } );