Skip to content

Commit

Permalink
remove flag delete from tree table again
Browse files Browse the repository at this point in the history
  • Loading branch information
rotsee committed Sep 17, 2023
1 parent 864ffc7 commit bc3fb1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions routes/v1/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default (req, reply) => {
})
client.connect()
const query = [
"SELECT flag_delete, description, added_at, type, img",
"SELECT description, added_at, type, img",
" , ST_Y(point) AS lat, ST_X(point) AS lon",
" FROM trees",
" WHERE ssm_key = $1",
Expand All @@ -36,9 +36,6 @@ export default (req, reply) => {
added: tree.added_at,
lat: tree.lat,
lon: tree.lon,
flags: {
delete: tree.flag_delete,
},
}
reply
.code(200)
Expand Down

0 comments on commit bc3fb1a

Please sign in to comment.