Remove uptime from /api/v1/services/{key}/statuses and return the entire service status instead of a map

This commit is contained in:
TwinProduction
2021-09-02 15:21:13 -04:00
committed by Chris
parent c61b406483
commit becc17202b
3 changed files with 5 additions and 29 deletions

View File

@ -108,7 +108,7 @@ export default {
.then(response => response.json())
.then(data => {
if (JSON.stringify(this.serviceStatus) !== JSON.stringify(data)) {
this.serviceStatus = data.serviceStatus;
this.serviceStatus = data;
this.uptime = data.uptime;
let events = [];
for (let i = data.events.length - 1; i >= 0; i--) {