From a51fbd73165caa1d79c0c030aa011e6e01d12fc6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Apr 2019 04:00:02 +0900 Subject: [PATCH] Suppress errors --- src/server/api/endpoints/i/update-email.ts | 4 ++-- src/server/api/private/signup.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/api/endpoints/i/update-email.ts b/src/server/api/endpoints/i/update-email.ts index 8b05f3c8c..15c62a9d0 100644 --- a/src/server/api/endpoints/i/update-email.ts +++ b/src/server/api/endpoints/i/update-email.ts @@ -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}` diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts index ea4df060f..4842a534b 100644 --- a/src/server/api/private/signup.ts +++ b/src/server/api/private/signup.ts @@ -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]) ));