Merge pull request #1694 from siiky/feat/lam-1111/customer-last-used-machine

LAM-1111 View last-used machine name on customer profile
This commit is contained in:
Rafael Taranto 2024-08-05 13:44:28 +01:00 committed by GitHub
commit 6274bccde5
8 changed files with 39 additions and 17 deletions

View file

@ -148,7 +148,7 @@ function getMachineNames (config) {
* @returns {string} machine name
*/
function getMachineName (machineId) {
const sql = 'SELECT * FROM devices WHERE device_id=$1'
const sql = 'SELECT name FROM devices WHERE device_id=$1'
return db.oneOrNone(sql, [machineId])
.then(it => it.name)
}