mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Avoid the multiple queries for Gamedig monitor
This commit is contained in:
		@@ -495,7 +495,8 @@ class Monitor extends BeanModel {
 | 
				
			|||||||
                        const state = await Gamedig.query({
 | 
					                        const state = await Gamedig.query({
 | 
				
			||||||
                            type: this.game,
 | 
					                            type: this.game,
 | 
				
			||||||
                            host: this.hostname,
 | 
					                            host: this.hostname,
 | 
				
			||||||
                            port: this.port
 | 
					                            port: this.port,
 | 
				
			||||||
 | 
					                            givenPortOnly: true,
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        bean.msg = state.name;
 | 
					                        bean.msg = state.name;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user