fix: put diagnostic timestamps in the right fields

This commit is contained in:
siiky 2025-06-17 11:58:41 +01:00
parent fc649a0b99
commit e9d219bc6c

View file

@ -61,11 +61,11 @@ function toMachineObject(r) {
timestamp: r.diagnostics_timestamp
? new Date(r.diagnostics_timestamp)
: null,
scanTimestamp: r.diagnostics_scan_timestamp
? new Date(r.diagnostics_scan_timestamp)
scanTimestamp: r.diagnostics_scan_updated_at
? new Date(r.diagnostics_scan_updated_at)
: null,
frontTimestamp: r.diagnostics_front_timestamp
? new Date(r.diagnostics_front_timestamp)
frontTimestamp: r.diagnostics_front_updated_at
? new Date(r.diagnostics_front_updated_at)
: null,
},
pairedAt: new Date(r.created),