fix ts
This commit is contained in:
parent
4df7c2bfa0
commit
8d1aefb339
|
|
@ -214,8 +214,7 @@ async function sendNotification(notification: EntityDict['notification']['OpSche
|
||||||
},
|
},
|
||||||
{ dontCollect: true }
|
{ dontCollect: true }
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
await context.operate(
|
await context.operate(
|
||||||
'notification',
|
'notification',
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,10 @@ export async function sendEmail<ED extends EntityDict>(
|
||||||
const instance = getEmail<ED>('nodemailer');
|
const instance = getEmail<ED>('nodemailer');
|
||||||
const result = await instance.sendEmail(options, context);
|
const result = await instance.sendEmail(options, context);
|
||||||
return result;
|
return result;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
res: err,
|
error: err?.message,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue