fix: update diagnostics timestamps depending on photo creation

This commit is contained in:
siiky 2025-06-17 11:56:02 +01:00
parent 70b72dc27b
commit fc649a0b99

View file

@ -676,7 +676,7 @@ function updateDiagnostics(deviceId, images) {
['scan.jpg', scan],
['front.jpg', front],
])
.then(() => db.none(sql, [deviceId, !!scan, !!front]))
.then(([scan, front]) => db.none(sql, [deviceId, scan, front]))
.catch(err => logger.error('while running machine diagnostics: ', err))
}