邮件:删除邮件
This commit is contained in:
@@ -53,10 +53,11 @@ export default class GroupMail extends MailTemp {
|
||||
const result: GroupMailType = await GroupMailModel.findOneAndUpdate(
|
||||
{
|
||||
_id, sendTime:{ $lte: nowSeconds() },
|
||||
'roleStatus.roleId': roleId,
|
||||
$or: [{
|
||||
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.READ}}, hasGoods:false
|
||||
'roleStatus.status': MAIL_STATUS.READ, hasGoods:false
|
||||
}, {
|
||||
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.RECEIVED}}
|
||||
'roleStatus.status': MAIL_STATUS.RECEIVED
|
||||
}]
|
||||
},
|
||||
{ $set:{ 'roleStatus.$.status': MAIL_STATUS.DELETE } },
|
||||
|
||||
Reference in New Issue
Block a user