From 9cc3bd0de416bb12dcb1b156953b203b2fcd3fa8 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 25 Jan 2023 00:19:54 +0800 Subject: [PATCH] Avoid the multiple queries for Gamedig monitor --- server/model/monitor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 2fcb08758..d247fdf16 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -495,7 +495,8 @@ class Monitor extends BeanModel { const state = await Gamedig.query({ type: this.game, host: this.hostname, - port: this.port + port: this.port, + givenPortOnly: true, }); bean.msg = state.name;