fix: update diagnostics timestamps depending on photo creation
This commit is contained in:
parent
70b72dc27b
commit
fc649a0b99
1 changed files with 1 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ function updateDiagnostics(deviceId, images) {
|
||||||
['scan.jpg', scan],
|
['scan.jpg', scan],
|
||||||
['front.jpg', front],
|
['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))
|
.catch(err => logger.error('while running machine diagnostics: ', err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue