update
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user