fix: load customer if lastUsedMachine is unpaired
This commit is contained in:
parent
39aa25b58d
commit
fde31be3aa
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ function getMachineNames (config) {
|
|||
function getMachineName (machineId) {
|
||||
const sql = 'SELECT name FROM devices WHERE device_id=$1'
|
||||
return db.oneOrNone(sql, [machineId])
|
||||
.then(it => it.name)
|
||||
.then(it => it?.name)
|
||||
}
|
||||
|
||||
function getMachine (machineId, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue