1
0
Fork 1
mirror of https://example.com synced 2024-11-23 12:06:39 +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;
}