refacator: fix typw

This commit is contained in:
syuilo
2022-02-19 14:53:33 +09:00
parent 1dc06f7ad3
commit b6db709e02
7 changed files with 7 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
await downloadUrl(emoji.originalUrl, emojiPath);
downloaded = true;
} catch (e) { // TODO: 何度か再試行
logger.error(e);
logger.error(e instanceof Error ? e : new Error(e as string));
}
if (!downloaded) {