fix: don't let lack of photo data go unnoticed
This commit is contained in:
parent
77347ff29c
commit
7d9df01eab
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ const updateFailedQRScans = (deviceId, frames) => {
|
|||
function createPhoto(name, data, dir) {
|
||||
if (!data) {
|
||||
logger.error(`Diagnostics error: No data to save for ${name} photo`)
|
||||
return Promise.resolve()
|
||||
return Promise.reject()
|
||||
}
|
||||
|
||||
const decodedImageData = Buffer.from(data, 'base64')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue