This commit is contained in:
pringgosutono
2026-04-18 15:35:25 +07:00
parent 23f21700e2
commit e443631dfe
2 changed files with 6 additions and 7 deletions

View File

@ -256,12 +256,11 @@ class GpsTracksModels {
let query = `
SELECT *
FROM t_gps_tracks
WHERE
latitude is not null
AND longitude is not null
AND stts_reverse_geo in (2,3)
and action = 'location'
ORDER BY id ASC
WHERE action = 'location'
AND stts_reverse_geo IN (2, 3)
AND latitude IS NOT NULL
AND longitude IS NOT NULL
ORDER BY id desc
LIMIT ?
`
params.push(limit)