This commit is contained in:
wkj 2024-08-23 12:03:01 +08:00
parent 4df7c2bfa0
commit 8d1aefb339
2 changed files with 3 additions and 4 deletions

View File

@ -214,8 +214,7 @@ async function sendNotification(notification: EntityDict['notification']['OpSche
},
{ dontCollect: true }
);
}
else {
} else {
await context.operate(
'notification',
{

View File

@ -36,10 +36,10 @@ export async function sendEmail<ED extends EntityDict>(
const instance = getEmail<ED>('nodemailer');
const result = await instance.sendEmail(options, context);
return result;
} catch (err) {
} catch (err: any) {
return {
success: false,
res: err,
error: err?.message,
};
}
}