remove code and timestamp from stautschangeresult, no longer used
This commit is contained in:
1 parent
6267e08a51
commit
4e4d3c3971
2 files changed
+1
-7
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -182,8 +182,6 @@ export type StatusChangeResult = {
|
||||
monitor: Monitor;
|
||||
statusChanged: boolean;
|
||||
prevStatus: MonitorStatus;
|
||||
code: number;
|
||||
timestamp: number;
|
||||
thresholdBreaches?: HardwareBreaches;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user