1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-29 07:18:52 +09:00

Suppress errors

This commit is contained in:
syuilo 2019-04-13 04:00:02 +09:00
parent 063f372f3c
commit a51fbd7316
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 3 additions and 3 deletions

View File

@ -76,12 +76,12 @@ export default define(meta, async (ps, user) => {
user: meta.smtpUser, user: meta.smtpUser,
pass: meta.smtpPass pass: meta.smtpPass
} : undefined } : undefined
}); } as any);
const link = `${config.url}/verify-email/${code}`; const link = `${config.url}/verify-email/${code}`;
transporter.sendMail({ transporter.sendMail({
from: meta.email, from: meta.email!,
to: ps.email, to: ps.email,
subject: meta.name || 'Misskey', subject: meta.name || 'Misskey',
text: `To verify email, please click this link: ${link}` text: `To verify email, please click this link: ${link}`

View File

@ -96,7 +96,7 @@ export default async (ctx: Koa.BaseContext) => {
cipher: undefined, cipher: undefined,
passphrase: undefined passphrase: undefined
} }
}, (e, publicKey, privateKey) => } as any, (e, publicKey, privateKey) =>
e ? j(e) : s([publicKey, privateKey]) e ? j(e) : s([publicKey, privateKey])
)); ));