fix:
修复邮件
This commit is contained in:
parent
7354ad9ae8
commit
ef6498c0d6
@ -5,7 +5,7 @@ import { ReqAllRemove, ResAllRemove } from "../../shared/protocols/email/PtlAllR
|
||||
export default async function (call: ApiCall<ReqAllRemove, ResAllRemove>) {
|
||||
// 筛选出没有奖励已读邮件和已经领取过奖励的邮件
|
||||
let emailList = (await EmailFun.getAllEmail(call.uid, true)).filter(email => (
|
||||
(email.emailRead && email.prizeData.prize.length <= 0) || email.prizeData.isGet
|
||||
(email.emailRead && email.prizeData?.prize.length <= 0) || email.prizeData.isGet
|
||||
));
|
||||
|
||||
if (emailList.length < 1) return call.error(globalThis.lng.email_2);
|
||||
|
Loading…
Reference in New Issue
Block a user