From 62fb04a2ee0e8edabf8cd04b23c3957dd1bd72cd Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 6 Sep 2021 17:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=EF=BC=9A=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/db/GroupMail.ts | 2 +- shared/db/Mail.ts | 2 +- shared/db/ServerMail.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/db/GroupMail.ts b/shared/db/GroupMail.ts index dde19cff9..c77d93e9a 100644 --- a/shared/db/GroupMail.ts +++ b/shared/db/GroupMail.ts @@ -28,7 +28,7 @@ export default class GroupMail extends MailTemp { const result: GroupMailType[] = await GroupMailModel.find({ 'roleStatus.roleId': roleId, 'roleStatus.status': { $in: [ MAIL_STATUS.CREATE, MAIL_STATUS.READ, MAIL_STATUS.RECEIVED ] }, - sendTime:{ $lte: nowSeconds() }, endTime: { $gte: nowSeconds() } + endTime: { $gte: nowSeconds() } }).populate('mail').lean(); return result; } diff --git a/shared/db/Mail.ts b/shared/db/Mail.ts index ac14ad6b5..cbeb202d5 100644 --- a/shared/db/Mail.ts +++ b/shared/db/Mail.ts @@ -21,7 +21,7 @@ export default class Mail extends MailTemp { const result: MailType[] = await MailModel.find({ roleId, status: { $in: [ MAIL_STATUS.CREATE, MAIL_STATUS.READ, MAIL_STATUS.RECEIVED ] }, - sendTime:{ $lte: nowSeconds() }, endTime: { $gte: nowSeconds() } + endTime: { $gte: nowSeconds() } }).populate('mail').lean(); return result; } diff --git a/shared/db/ServerMail.ts b/shared/db/ServerMail.ts index 10123cc22..f31f7ab3c 100644 --- a/shared/db/ServerMail.ts +++ b/shared/db/ServerMail.ts @@ -33,7 +33,7 @@ export default class ServerMail extends MailTemp { const result: ServerMailType[] = await ServerMailModel.find({ serverId, delRoles: { $ne: roleId }, - sendTime:{ $lte: nowSeconds() }, endTime: { $gte: nowSeconds() } + endTime: { $gte: nowSeconds() } }).populate('mail').lean(); return result; }