1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 15:45:58 +09:00

Make info

This commit is contained in:
syuilo 2019-03-09 10:10:24 +09:00
parent a179cfd69a
commit 606e46e4d7
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -48,7 +48,7 @@ export default async (job: Bull.Job): Promise<void> => {
// TODO: いちいちデータベースにアクセスするのはコスト高そうなのでどっかにキャッシュしておく
const instance = await Instance.findOne({ host: host.toLowerCase() });
if (instance && instance.isBlocked) {
logger.warn(`Blocked request: ${host}`);
logger.info(`Blocked request: ${host}`);
return;
}