From e3f3b5f2a17896c7e8312c745c1181f6c762cd16 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 3 Sep 2021 10:35:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E6=8A=A4:=20=E5=A4=96=E9=93=BE?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/Maintenance.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/db/Maintenance.ts b/shared/db/Maintenance.ts index 389e2b156..99a8393f9 100644 --- a/shared/db/Maintenance.ts +++ b/shared/db/Maintenance.ts @@ -25,13 +25,13 @@ export default class Maintenance extends BaseModel { @prop({ required: true }) startTime: Date; // 维护开始时间 - @prop({ ref: 'Marquee', type: mongoose.Schema.Types.ObjectId }) + @prop({ ref: () => Marquee, type: mongoose.Schema.Types.ObjectId }) marquee: Ref; // 跑马灯,连接到marquee表 - @prop({ ref: 'Notice', type: mongoose.Schema.Types.ObjectId }) + @prop({ ref: () => Notice, type: mongoose.Schema.Types.ObjectId }) notice: Ref; // 维护公告 - @prop({ ref: 'GMMail', type: mongoose.Schema.Types.ObjectId }) + @prop({ ref: () => GMMail, type: mongoose.Schema.Types.ObjectId }) mail: Ref; // 维护结束邮件