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