fix: bad query on plugins.js
This commit is contained in:
parent
0d6349dbf4
commit
538e32fbec
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ function plugins (settings, deviceId) {
|
|||
return Promise.all([
|
||||
db.none(`insert into machine_pings(device_id, device_time) values($1, $2)
|
||||
ON CONFLICT (device_id) DO UPDATE SET device_time = $2, updated = now()`, [deviceId, deviceTime]),
|
||||
db.none(pgp.helpers.update(devices, null, 'devices') + `WHERE device_id = ${deviceId}`, {
|
||||
db.none(pgp.helpers.update(devices, null, 'devices') + 'WHERE device_id = ${deviceId}', {
|
||||
deviceId
|
||||
})
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue