Make info
This commit is contained in:
		
							parent
							
								
									a179cfd69a
								
							
						
					
					
						commit
						606e46e4d7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -48,7 +48,7 @@ export default async (job: Bull.Job): Promise<void> => {
 | 
				
			||||||
		// TODO: いちいちデータベースにアクセスするのはコスト高そうなのでどっかにキャッシュしておく
 | 
							// TODO: いちいちデータベースにアクセスするのはコスト高そうなのでどっかにキャッシュしておく
 | 
				
			||||||
		const instance = await Instance.findOne({ host: host.toLowerCase() });
 | 
							const instance = await Instance.findOne({ host: host.toLowerCase() });
 | 
				
			||||||
		if (instance && instance.isBlocked) {
 | 
							if (instance && instance.isBlocked) {
 | 
				
			||||||
			logger.warn(`Blocked request: ${host}`);
 | 
								logger.info(`Blocked request: ${host}`);
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue