fix ts
This commit is contained in:
parent
4df7c2bfa0
commit
8d1aefb339
|
|
@ -214,8 +214,7 @@ async function sendNotification(notification: EntityDict['notification']['OpSche
|
|||
},
|
||||
{ dontCollect: true }
|
||||
);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
await context.operate(
|
||||
'notification',
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue