Fix api url getting monitors for map

pull/4131/merge
Isaac Connor 2024-12-18 13:44:20 -05:00
parent 0bbaedc5d9
commit 72330a5234
1 changed files with 2 additions and 1 deletions

View File

@ -70,13 +70,14 @@ var ZMMap = function() {
key: 'addMonitors',
value: function addMonitors() {
const server = new Server(Servers[serverId]);
const get_monitors_promise = server.getFromApi('/monitors/Deleted:0.json');
const get_monitors_promise = server.getFromApi('/monitors/index/Deleted:0.json');
get_monitors_promise
.then((response) => {
return response.json();
})
.then((monitors) => {
console.log(monitors);
if (!monitors.monitors) return;
let cant_connected = 0;
let cant_disconnected = 0;