remove code and timestamp from stautschangeresult, no longer used

This commit is contained in:
Alex Holliday committed 2026-09-24 13:41:58 -07:00
1 parent 6267e08a51
commit 4e4d3c3971
2 files changed
+1 -7

No files matched your search

+1 -5
View File
@@ -160,7 +160,7 @@ export class StatusService implements IStatusService {
updateMonitorStatus = async (check: Check, monitor: Monitor): Promise<StatusChangeResult> => {
try {
const { status, statusCode } = check;
const { status } = check;
// Update running stats
await this.tryUpdateRunningStats(check, monitor);
@@ -204,8 +204,6 @@ export class StatusService implements IStatusService {
monitor: updated,
statusChanged,
prevStatus,
code: statusCode,
timestamp: Date.now(),
};
}
@@ -279,8 +277,6 @@ export class StatusService implements IStatusService {
monitor: updated,
statusChanged,
prevStatus,
code: statusCode,
timestamp: new Date().getTime(),
thresholdBreaches,
};
} catch (error: unknown) {
-2
View File
@@ -182,8 +182,6 @@ export type StatusChangeResult = {
monitor: Monitor;
statusChanged: boolean;
prevStatus: MonitorStatus;
code: number;
timestamp: number;
thresholdBreaches?: HardwareBreaches;
};