Remove Uptime.Last* parameters

This commit is contained in:
TwinProduction authored and Chris committed 2021-08-13 01:25:50 -04:00
1 parent 0b6fc6b520
commit d65cebb1fb
15 files changed
+48 -173

No files matched your search

-5
View File
@@ -29,11 +29,6 @@ func ShallowCopyServiceStatus(ss *core.ServiceStatus, params *paging.ServiceStat
} else {
shallowCopy.Events = ss.Events[eventsStart:eventsEnd]
}
if params.IncludeUptime {
shallowCopy.Uptime.LastHour = ss.Uptime.LastHour
shallowCopy.Uptime.LastTwentyFourHours = ss.Uptime.LastTwentyFourHours
shallowCopy.Uptime.LastSevenDays = ss.Uptime.LastSevenDays
}
return shallowCopy
}