mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
Suppress errors
This commit is contained in:
parent
76c393b4fd
commit
190a7120c4
2 changed files with 3 additions and 3 deletions
|
@ -76,12 +76,12 @@ export default define(meta, async (ps, user) => {
|
|||
user: meta.smtpUser,
|
||||
pass: meta.smtpPass
|
||||
} : undefined
|
||||
});
|
||||
} as any);
|
||||
|
||||
const link = `${config.url}/verify-email/${code}`;
|
||||
|
||||
transporter.sendMail({
|
||||
from: meta.email,
|
||||
from: meta.email!,
|
||||
to: ps.email,
|
||||
subject: meta.name || 'Misskey',
|
||||
text: `To verify email, please click this link: ${link}`
|
||||
|
|
|
@ -96,7 +96,7 @@ export default async (ctx: Koa.BaseContext) => {
|
|||
cipher: undefined,
|
||||
passphrase: undefined
|
||||
}
|
||||
}, (e, publicKey, privateKey) =>
|
||||
} as any, (e, publicKey, privateKey) =>
|
||||
e ? j(e) : s([publicKey, privateKey])
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue