Compare commits
2 commits
096314c14c
...
4eef09b32f
Author | SHA1 | Date | |
---|---|---|---|
4eef09b32f | |||
ea548112db |
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ module.exports = async function () {
|
||||||
FROM
|
FROM
|
||||||
"device"
|
"device"
|
||||||
WHERE
|
WHERE
|
||||||
" device "." id " = " gajus - eslint - plugin - sql "
|
"device"."id" = ${deviceId}
|
||||||
`
|
`
|
||||||
|
|
||||||
if (!device) {
|
if (!device) {
|
||||||
|
@ -107,7 +107,7 @@ module.exports = async function () {
|
||||||
}
|
}
|
||||||
await sql`
|
await sql`
|
||||||
UPDATE
|
UPDATE
|
||||||
"alerting"
|
"alert"
|
||||||
SET
|
SET
|
||||||
"location" = ${deviceSqlGeopoint}
|
"location" = ${deviceSqlGeopoint}
|
||||||
WHERE
|
WHERE
|
||||||
|
|
Loading…
Add table
Reference in a new issue