mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Fix port NaN not working in MariaDB
This commit is contained in:
parent
b2a1bd5214
commit
5388a37a26
1 changed files with 5 additions and 0 deletions
|
@ -714,6 +714,11 @@ let needSetup = false;
|
|||
bean.game = monitor.game;
|
||||
bean.maxretries = monitor.maxretries;
|
||||
bean.port = parseInt(monitor.port);
|
||||
|
||||
if (isNaN(bean.port)) {
|
||||
bean.port = null;
|
||||
}
|
||||
|
||||
bean.keyword = monitor.keyword;
|
||||
bean.ignoreTls = monitor.ignoreTls;
|
||||
bean.expiryNotification = monitor.expiryNotification;
|
||||
|
|
Loading…
Reference in a new issue