邮件:删除邮件bug

This commit is contained in:
luying
2021-08-05 14:35:11 +08:00
parent 4dcf1a8930
commit 7a46bc3dec
2 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ export default class ServerMail extends MailTemp {
$or: [{
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.READ}}, hasGoods:false
}, {
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.RECEIVED}}, hasGoods: true
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.RECEIVED}}
}]
},
{ $set:{ 'roleStatus.$.status': MAIL_STATUS.DELETE, $push: { 'delRoles': roleId } } },
@@ -87,7 +87,7 @@ export default class ServerMail extends MailTemp {
$or: [{
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.READ}}, hasGoods:false
}, {
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.RECEIVED}}, hasGoods: true
roleStatus: {$elemMatch: {roleId, status: MAIL_STATUS.RECEIVED}}
}]
}
).select('_id').lean();