mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 04:04:41 -05:00
Fix port NaN not working in MariaDB
This commit is contained in:
parent
b2a1bd5214
commit
5388a37a26
@ -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 New Issue
Block a user